]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation error (regression from today).
authorBruno Haible <bruno@clisp.org>
Sun, 25 Nov 2018 02:40:39 +0000 (03:40 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Nov 2018 02:40:39 +0000 (03:40 +0100)
* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'unistd'.
* gettext-runtime/src/envsubst.c: Include <unistd.h>.

autogen.sh
gettext-runtime/src/envsubst.c

index 24455c4f9ffcb4de74a46ce4c32b72133a379da8..28f82f059ca42b67e55a24099cb8645993f25c57 100755 (executable)
@@ -153,6 +153,7 @@ if ! $skip_gnulib; then
       stdio
       stdlib
       strtoul
+      unistd
       unlocked-io
       xalloc
     '
index 8416b7a9d4a2836ecfc7259e9b5841dc81ee121e..93215b5a015a1c2a28fe5eed28059b7eddc0764e 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <locale.h>
 
 #include "closeout.h"