Bah. I missed a header file.
authorEric Andersen <andersen@codepoet.org>
Thu, 1 Mar 2001 07:55:49 +0000 (07:55 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 1 Mar 2001 07:55:49 +0000 (07:55 -0000)
mount.c
util-linux/mount.c

diff --git a/mount.c b/mount.c
index 2353a8a..cddccad 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -83,7 +83,11 @@ extern int mount (__const char *__special_file, __const char *__dir,
                        __const void *__data);
 extern int umount (__const char *__special_file);
 extern int umount2 (__const char *__special_file, int __flags);
-static _syscall3(int, sysfs, int, option, unsigned int, fs_index, char *, buf);
+
+#include <sys/syscall.h>
+#include <linux/unistd.h>
+static int sysfs( int option, unsigned int fs_index, char * buf);
+_syscall3(int, sysfs, int, option, unsigned int, fs_index, char *, buf);
 
 
 extern const char mtab_file[]; /* Defined in utility.c */
index 2353a8a..cddccad 100644 (file)
@@ -83,7 +83,11 @@ extern int mount (__const char *__special_file, __const char *__dir,
                        __const void *__data);
 extern int umount (__const char *__special_file);
 extern int umount2 (__const char *__special_file, int __flags);
-static _syscall3(int, sysfs, int, option, unsigned int, fs_index, char *, buf);
+
+#include <sys/syscall.h>
+#include <linux/unistd.h>
+static int sysfs( int option, unsigned int fs_index, char * buf);
+_syscall3(int, sysfs, int, option, unsigned int, fs_index, char *, buf);
 
 
 extern const char mtab_file[]; /* Defined in utility.c */