From 97cb37e45aa2aeff24165c66086d8531fd7b24d2 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 5 Nov 2012 11:27:49 -0800 Subject: [PATCH] fixed prototypes --- mformat.c | 3 ++- mpartition.c | 3 ++- sysincludes.h | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mformat.c b/mformat.c index 89b27a3..47268c9 100644 --- a/mformat.c +++ b/mformat.c @@ -19,6 +19,7 @@ */ #define DONT_NEED_WAIT +#define DONT_NEED_IN #include "sysincludes.h" #include "msdos.h" @@ -48,7 +49,7 @@ #define _LINUX_STRING_H_ #define kdev_t int -#include "linux/fs.h" +#include "sys/mount.h" #undef _LINUX_STRING_H_ #endif diff --git a/mpartition.c b/mpartition.c index 24ac840..e89e352 100644 --- a/mpartition.c +++ b/mpartition.c @@ -17,6 +17,7 @@ * mformat.c */ #define DONT_NEED_WAIT +#define DONT_NEED_IN #include "sysincludes.h" #include "msdos.h" @@ -35,7 +36,7 @@ #define _LINUX_STRING_H_ #define kdev_t int -#include "linux/fs.h" +#include "sys/mount.h" #undef _LINUX_STRING_H_ #endif diff --git a/sysincludes.h b/sysincludes.h index 2a0e528..0960f89 100644 --- a/sysincludes.h +++ b/sysincludes.h @@ -334,12 +334,16 @@ typedef unsigned int uid_t; #endif #ifdef HAVE_NETINET_IN_H +#ifndef DONT_NEED_IN #include #endif +#endif #ifdef HAVE_ARPA_INET_H +#ifndef DONT_NEED_IN #include #endif +#endif #ifdef HAVE_NETDB_H #include -- 2.7.4