summaryrefslogtreecommitdiffstats
path: root/source/client/smbmnt.c
diff options
context:
space:
mode:
authorMichael Warfield <mhw@samba.org>1998-09-28 19:18:21 +0000
committerMichael Warfield <mhw@samba.org>1998-09-28 19:18:21 +0000
commit8a4730f61923577b0bd9e09ef1a00538f7dfb0de (patch)
tree90ef6c9fcde2dfd2a3497289959cc6d6c7da27ef /source/client/smbmnt.c
parent270f4b0f84167e378b4615af8aedb85970320b1d (diff)
downloadsamba-8a4730f61923577b0bd9e09ef1a00538f7dfb0de.tar.gz
samba-8a4730f61923577b0bd9e09ef1a00538f7dfb0de.tar.xz
samba-8a4730f61923577b0bd9e09ef1a00538f7dfb0de.zip
Two changes in this ball...
1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems. 2) Changes to Makefile.in and configure.in (and subsequently configure) are to configure for smbmount, smbumount, and smbmnt to compile. This adds a "--with(out)-smbmount" option to configure. Sanity checking is not present yet. You can specify this if you are not on linux, it just won't compile.
Diffstat (limited to 'source/client/smbmnt.c')
-rw-r--r--source/client/smbmnt.c34
1 files changed, 12 insertions, 22 deletions
diff --git a/source/client/smbmnt.c b/source/client/smbmnt.c
index f6753090b8a..fa3cacb8640 100644
--- a/source/client/smbmnt.c
+++ b/source/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;