diff options
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbmnt.c | 34 | ||||
-rw-r--r-- | source3/client/smbmount.c | 2 | ||||
-rw-r--r-- | source3/client/smbumount.c | 26 |
3 files changed, 18 insertions, 44 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c index f6753090b8..fa3cacb864 100644 --- a/source3/client/smbmnt.c +++ b/source3/client/smbmnt.c @@ -5,34 +5,24 @@ * */ -#include <stdio.h> -#include <string.h> -#include <signal.h> -#include <pwd.h> -#include <grp.h> -#include <sys/socket.h> -#include <sys/param.h> -#include <netinet/in.h> -#include <netdb.h> -#include <sys/stat.h> -#include <sys/types.h> -/* #include <sys/wait.h> */ /* generates a warning here */ -extern pid_t waitpid(pid_t, int *, int); -#include <sys/errno.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <ctype.h> -#include <stdlib.h> -#include <sys/mount.h> +#include "includes.h" + #include <mntent.h> -#include <linux/fs.h> +#include <asm/types.h> +#include <asm/posix_types.h> #include <linux/smb.h> #include <linux/smb_mount.h> - #include <asm/unistd.h> +#ifndef MS_MGC_VAL +/* This may look strange but MS_MGC_VAL is what we are looking for and + is what we need from <linux/fs.h> under libc systems and is + provided in standard includes on glibc systems. So... We + switch on what we need... */ +#include <linux/fs.h> +#endif + static char *progname; diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 95aeecde3c..dadccc819d 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -28,6 +28,8 @@ #endif #include "includes.h" + +#include <asm/types.h> #include <linux/smb_fs.h> static struct smb_conn_opt conn_options; diff --git a/source3/client/smbumount.c b/source3/client/smbumount.c index ef9e5ef203..c3ba262010 100644 --- a/source3/client/smbumount.c +++ b/source3/client/smbumount.c @@ -5,30 +5,12 @@ * */ -#include <stdio.h> -#include <string.h> -#include <signal.h> -#include <pwd.h> -#include <grp.h> -#include <sys/socket.h> -#include <sys/param.h> -#include <netinet/in.h> -#include <netdb.h> -#include <sys/stat.h> -#include <sys/types.h> -/* #include <sys/wait.h> */ /* generates a warning here */ -extern pid_t waitpid(pid_t, int *, int); -#include <sys/errno.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <ctype.h> -#include <stdlib.h> -#include <sys/mount.h> +#include "includes.h" + #include <mntent.h> -#include <sys/ioctl.h> -#include <linux/fs.h> +#include <asm/types.h> +#include <asm/posix_types.h> #include <linux/smb.h> #include <linux/smb_mount.h> #include <linux/smb_fs.h> |