浏览代码

Add hidden version for susv3 getopt

Peter S. Mazinger 19 年之前
父节点
当前提交
1204bae1e5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/unistd/getopt-susv3.c

+ 2 - 0
libc/unistd/getopt-susv3.c

@@ -59,6 +59,7 @@ int optind = 1;
 int optopt = 0;
 char *optarg = NULL;
 
+libc_hidden_proto(getopt)
 int getopt(int argc, char * const argv[], const char *optstring)
 {
 	static const char *o;		/* multi opt position */
@@ -135,3 +136,4 @@ int getopt(int argc, char * const argv[], const char *optstring)
  DONE:
 	return retval;
 }
+libc_hidden_def(getopt)