[klibc] [patch 03/12] make getopt visible

Erik van Konijnenburg ekonijn at xs4all.nl
Sun May 22 07:50:58 PDT 2005


The getopt(3) function is declared in unistd.h.

Signed-off-by: Erik van Konijnenburg <ekonin at xs4all.nl>

Index: exec/ipconfig/main.c
===================================================================
--- exec.orig/ipconfig/main.c	2005-05-18 11:53:11.000000000 +0200
+++ exec/ipconfig/main.c	2005-05-21 13:09:54.000000000 +0200
@@ -12,6 +12,7 @@
 #include <sys/types.h>
 #include <dirent.h>
 #include <fcntl.h>
+#include <unistd.h>	/* for getopts */
 
 #include <linux/if_arp.h>
 
Index: exec/nfsmount/main.c
===================================================================
--- exec.orig/nfsmount/main.c	2004-10-10 20:02:39.000000000 +0200
+++ exec/nfsmount/main.c	2005-05-21 13:10:26.000000000 +0200
@@ -12,6 +12,7 @@
 #include <string.h>
 #include <signal.h>
 #include <sys/wait.h>
+#include <unistd.h>
 
 #include <linux/nfs_mount.h>
 

--



More information about the klibc mailing list