diff options
author | 2015-01-16 16:48:51 +0000 | |
---|---|---|
committer | 2015-01-16 16:48:51 +0000 | |
commit | aea60bee5e9bad0aab62f480f19c2fb34c068de4 (patch) | |
tree | 1e7befbc10e28796528939427d4fdbd94b60d9af /lib/libc/gen/sysconf.c | |
parent | More evil bootstrap code. #ifndef ALIGNBYTES #define ALIGNBYTES 3. (diff) | |
download | wireguard-openbsd-aea60bee5e9bad0aab62f480f19c2fb34c068de4.tar.xz wireguard-openbsd-aea60bee5e9bad0aab62f480f19c2fb34c068de4.zip |
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Diffstat (limited to 'lib/libc/gen/sysconf.c')
-rw-r--r-- | lib/libc/gen/sysconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index 2c6e6a49bf1..ef67c24e0dc 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysconf.c,v 1.20 2014/07/08 17:19:21 deraadt Exp $ */ +/* $OpenBSD: sysconf.c,v 1.21 2015/01/16 16:48:51 deraadt Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ * SUCH DAMAGE. */ -#include <sys/param.h> +#include <sys/types.h> #include <sys/sem.h> #include <sys/sysctl.h> #include <sys/time.h> @@ -203,7 +203,7 @@ sysconf(int name) /* Unsorted */ case _SC_HOST_NAME_MAX: - return (MAXHOSTNAMELEN - 1); /* does not include \0 */ + return (HOST_NAME_MAX+1 - 1); /* does not include \0 */ case _SC_MONOTONIC_CLOCK: return (_POSIX_MONOTONIC_CLOCK); case _SC_2_PBS: |