summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sysconf.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
committerguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
commit0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch)
tree156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/gen/sysconf.c
parentWrap <getopt.h> to make the functions weak and make access to the initialized (diff)
downloadwireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.tar.xz
wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.zip
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
Diffstat (limited to 'lib/libc/gen/sysconf.c')
-rw-r--r--lib/libc/gen/sysconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c
index bdf99a17711..3f39418f026 100644
--- a/lib/libc/gen/sysconf.c
+++ b/lib/libc/gen/sysconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysconf.c,v 1.22 2015/01/16 18:18:58 millert Exp $ */
+/* $OpenBSD: sysconf.c,v 1.23 2015/09/12 14:56:50 guenther Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -468,3 +468,4 @@ sysconf(int name)
}
return (sysctl(mib, namelen, &value, &len, NULL, 0) == -1 ? -1 : value);
}
+DEF_WEAK(sysconf);