summaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2012-01-15 00:49:58 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-25 15:52:12 +0200
commit079db24a313a4a4158248c4bf95b70b59bee0649 (patch)
tree69dfc1b208654b517330b57957ef68620b99040b /src/os.h
parent40665f1a7cbd2ebcb1576c8ee68cd6d03f092c3d (diff)
downloadscreen-079db24a313a4a4158248c4bf95b70b59bee0649.tar.gz
that's all?
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/os.h b/src/os.h
index 09879ca..00c35c0 100644
--- a/src/os.h
+++ b/src/os.h
@@ -38,15 +38,14 @@
#define NAME_MAX 14
#endif
-#ifdef ISC
-# ifdef ENAMETOOLONG
-# undef ENAMETOOLONG
-# endif
-# ifdef ENOTEMPTY
-# undef ENOTEMPTY
+#include <limits.h>
+
+#ifndef NAME_MAX
+# ifndef MAXNAMELEN
+# define NAME_MAX 255
+# else
+# define NAME_MAX MAXNAMELEN
# endif
-# include <sys/bsdtypes.h>
-# include <net/errno.h>
#endif
#include <unistd.h>