[hackers] [sbase] Add compat.h || sin

From: <git_AT_suckless.org>
Date: Mon, 17 Nov 2014 16:46:32 +0100

commit cb7cbde72233be91b1a5fdbae5aa6f78a8ba4cd9
Author: sin <sin_AT_2f30.org>
Date: Mon Nov 17 15:45:09 2014 +0000

    Add compat.h

diff --git a/Makefile b/Makefile
index 99d6f51..ad280a3 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -5,6 +5,7 @@ include config.mk
 
 HDR =\
         arg.h\
+ compat.h\
         crypt.h\
         fs.h\
         md5.h\
diff --git a/compat.h b/compat.h
new file mode 100644
index 0000000..e2154a6
--- /dev/null
+++ b/compat.h
_AT_@ -0,0 +1,6 @@
+/* See LICENSE file for copyright and license details. */
+#include <limits.h>
+
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
diff --git a/util.h b/util.h
index b152ffd..2de6f3b 100644
--- a/util.h
+++ b/util.h
_AT_@ -1,13 +1,11 @@
 /* See LICENSE file for copyright and license details. */
 #include <sys/types.h>
-#include <limits.h>
+
 #include <regex.h>
 #include <stddef.h>
-#include "arg.h"
 
-#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
-#endif
+#include "arg.h"
+#include "compat.h"
 
 #define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
 
Received on Mon Nov 17 2014 - 16:46:32 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2014 - 16:48:11 CET