浏览代码

getopt_long[_only] visible only if GNU getopt used

Peter S. Mazinger 18 年之前
父节点
当前提交
62e24ca477
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/sysdeps/linux/common/bits/getopt.h

+ 2 - 0
libc/sysdeps/linux/common/bits/getopt.h

@@ -157,6 +157,7 @@ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
 extern int getopt ();
 #endif /* __GNU_LIBRARY__ */
 
+#ifdef __UCLIBC_HAS_GNU_GETOPT__
 #ifndef __need_getopt
 extern int getopt_long (int ___argc, char *const *___argv,
 			const char *__shortopts,
@@ -168,6 +169,7 @@ extern int getopt_long_only (int ___argc, char *const *___argv,
        __THROW;
 
 #endif
+#endif
 
 #ifdef	__cplusplus
 }