diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 16:48:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-16 16:48:53 +0000 |
commit | 94fa34c725ef755eb123686f6cbdceb24411e401 (patch) | |
tree | adb4e0f8373b5c035f73e06a3c6d139aba24388c /lib/libc/gen/sysconf.c | |
parent | e188cfc0eef8e45aaec37715ff8af7ca7e0dafe3 (diff) |
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: |