summaryrefslogtreecommitdiff
path: root/app-text/diction/files/diction-1.14-getenv.patch
blob: 4d2cf79accd4d3ddc7a6e5960e9d4e7c32c9955d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
get correct getenv prototype instead of cooking one up that's not going
to be useless with recent compilers

--- a/getopt.c
+++ b/getopt.c
@@ -143,9 +143,7 @@
 /* Avoid depending on library functions or files
    whose names are inconsistent.  */
 
-#ifndef getenv
-extern char *getenv ();
-#endif
+#include <stdlib.h>
 
 #endif /* not __GNU_LIBRARY__ */