]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add missing #if HAVE_SYS_PARAM_H
authorJonas 'Sortie' Termansen <sortie@maxsi.org>
Tue, 26 Aug 2014 14:41:11 +0000 (16:41 +0200)
committerDaiki Ueno <ueno@gnu.org>
Wed, 27 Aug 2014 02:40:50 +0000 (11:40 +0900)
gettext-tools/src/ChangeLog
gettext-tools/src/hostname.c

index 6a210e4173f3e7aa8f3f8e580687c08ec97eacbb..241eaf4485382f466fc06f8677c72ef0431f55ea 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-27  Jonas 'Sortie' Termansen <sortie@maxsi.org>  (tiny change)
+
+       * hostname.c: Add guard around #include <sys/param.h>.
+
 2014-07-14  Daiki Ueno  <ueno@gnu.org>
 
        * gettext 0.19.2 released.
index 76558e0291537981d3c329b15372496239e921ff..a7032b32788d316184e703bb0fbb8a9f0639c399 100644 (file)
@@ -46,7 +46,9 @@
 #endif
 
 /* Get MAXHOSTNAMELEN.  */
-#include <sys/param.h>
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
 #ifndef MAXHOSTNAMELEN
 # define MAXHOSTNAMELEN 64
 #endif