]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: do not remove definition of ENODATA, after all
authorJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 10:31:44 +0000 (12:31 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 10:31:49 +0000 (12:31 +0200)
* src/system.h (ENODATA): Restore definition.
gnulib defines it only on native Windows systems, so removing our
definition would have provoked build failure on systems that use it,
like FreeBSD.  Reported by Bruno Haible in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
* gnulib: Update to latest, to get new ENODATA-exempting maint.mk rule.

gnulib
src/system.h

diff --git a/gnulib b/gnulib
index 71f13422f3e6345933513607255f1f7a7526e937..f1a5c91522554791317dc2ee763fe8c017c7b810 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 71f13422f3e6345933513607255f1f7a7526e937
+Subproject commit f1a5c91522554791317dc2ee763fe8c017c7b810
index 19421a9ddaacfa010adcf256055c8f9521049c65..926def9570b9ef31e2e002359cc7767942d3eb45 100644 (file)
@@ -76,6 +76,14 @@ you must include <sys/types.h> before including this file
 
 #include <string.h>
 #include <errno.h>
+
+/* Some systems don't define this; POSIX mentions it but says it is
+   obsolete.  gnulib defines it, but only on native Windows systems,
+   and there only because MSVC 10 does.  */
+#ifndef ENODATA
+# define ENODATA (-1)
+#endif
+
 #include <stdbool.h>
 #include <stdlib.h>
 #include "version.h"