Browse Source

sys/mount.h

K. Lange 2 years ago
parent
commit
36ca4d420b
2 changed files with 4 additions and 4 deletions
  1. 1 4
      apps/mount.c
  2. 3 0
      base/usr/include/sys/mount.h

+ 1 - 4
apps/mount.c

@@ -10,10 +10,7 @@
 
 #include <stdio.h>
 #include <errno.h>
-
-#ifndef mount
-extern int mount(char * source, char * target, char * type, unsigned long flags, void * data);
-#endif
+#include <sys/mount.h>
 
 int main(int argc, char ** argv) {
 	if (argc < 4) {

+ 3 - 0
base/usr/include/sys/mount.h

@@ -0,0 +1,3 @@
+#pragma once
+
+extern int mount(char * source, char * target, char * type, unsigned long flags, void * data);