summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-02-02 15:31:32 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-02-02 15:31:32 +0000
commitb14067cc8c2513fe9f608b36ddc3dde3665568d3 (patch)
treeb97993ba4d4a32ee66692c4b778797c8ece0bb96 /sys
parent09af1aa88df679237a5ccf58e251e69cbcdba82f (diff)
Define _POSIX_HOST_NAME_MAX and HOST_NAME_MAX.
ok krw@, laurent@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/syslimits.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h
index 365669c49e6..e1b4a1682d1 100644
--- a/sys/sys/syslimits.h
+++ b/sys/sys/syslimits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslimits.h,v 1.10 2005/12/31 19:29:39 millert Exp $ */
+/* $OpenBSD: syslimits.h,v 1.11 2008/02/02 15:31:31 kettenis Exp $ */
/* $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ */
/*
@@ -70,3 +70,7 @@
#define TTY_NAME_MAX 260 /* max tty device name length w/ NUL */
#define LOGIN_NAME_MAX 32 /* max login name length w/ NUL */
#endif /* __XPG_VISIBLE >= 500 || __POSIX_VISIBLE >= 199506 || __BSD_VISIBLE */
+
+#if __POSIX_VISIBLE >= 200112
+#define HOST_NAME_MAX 255
+#endif