summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/stdlib.h5
-rw-r--r--include/unistd.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 23e6409..f94e7ab 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -177,10 +177,7 @@ double drand48(void);
double erand48(unsigned short[3]);
/* char *fcvt(double, int, int * __restrict, int * __restrict); */
/* char *gcvt(double, int, int * __restrict, int * __restrict); */
-#ifndef _GETSUBOPT_DECLARED
int getsubopt(char **, char *const *, char **);
-#define _GETSUBOPT_DECLARED
-#endif
int grantpt(int);
char *initstate(unsigned long /* XSI requires u_int */, char *, long);
long jrand48(unsigned short[3]);
@@ -277,6 +274,8 @@ __int64_t
strtoq(const char *, char **, int);
__uint64_t
strtouq(const char *, char **, int);
+
+extern char *suboptarg; /* getsubopt(3) external variable */
#endif /* __BSD_VISIBLE */
__END_DECLS
diff --git a/include/unistd.h b/include/unistd.h
index da1438a..6a441dd 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -539,11 +539,6 @@ int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t); /* obsoleted by malloc() */
-extern char *suboptarg; /* getsubopt(3) external variable */
-#ifndef _GETSUBOPT_DECLARED
-int getsubopt(char **, char * const *, char **);
-#define _GETSUBOPT_DECLARED
-#endif
extern int optreset; /* getopt(3) external variable */
#endif /* __BSD_VISIBLE */
__END_DECLS
OpenPOWER on IntegriCloud