all: Use #include <sys/sysmacros.h> for major() instead #define _BSD_SOURCE
This commit is contained in:
1 parent
7522a9fbc7
commit
430930537c
2 files changed
+2
-12
No files matched your search
@@ -20,12 +20,6 @@
|
||||
|
||||
/* This is simple CAL parser form Calvaria */
|
||||
|
||||
#ifdef __linux__
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
@@ -42,6 +36,7 @@
|
||||
#ifdef __linux__
|
||||
#include <linux/fs.h>
|
||||
#include <mtd/mtd-user.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "cal.h"
|
||||
|
||||
+1
-6
@@ -16,12 +16,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef __linux__
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
@@ -32,6 +26,7 @@
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
#include <dirent.h>
|
||||
|
||||
Reference in new issue
Block a user