1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

build: do not remove definition of ENODATA, after all

* 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.
This commit is contained in:
Jim Meyering
2011-10-25 12:31:44 +02:00
parent 5bb6316bd7
commit 22f3b2e960
2 changed files with 9 additions and 1 deletions
+1 -1
Submodule gnulib updated: 71f13422f3...f1a5c91522
+8
View 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"