From: Jim Meyering Date: Sun, 28 Oct 2007 17:16:54 +0000 (+0100) Subject: Define ENODATA, for FreeBSD 5.0 and 6.1. X-Git-Tag: v6.9.89~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39e668ce5b06b0747e5039a59bcfe1174c6fe366;p=thirdparty%2Fcoreutils.git Define ENODATA, for FreeBSD 5.0 and 6.1. * src/system.h (ENODATA): Define, if missing. --- diff --git a/ChangeLog b/ChangeLog index 3cbacf0486..becbb6f3cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-10-28 Jim Meyering + Define ENODATA, for FreeBSD 5.0 and 6.1. + * src/system.h (ENODATA): Define, if missing. + Run autoreconf, not just autoconf, to avoid warnings. * GNUmakefile (dummy): Otherwise, we'd sometimes get a warning about autoconf version mismatch between what was used to generate diff --git a/src/system.h b/src/system.h index 88765e0f17..0cd0804ce3 100644 --- a/src/system.h +++ b/src/system.h @@ -109,6 +109,9 @@ you must include before including this file #ifndef ENOSYS # define ENOSYS (-1) #endif +#ifndef ENODATA +# define ENODATA (-1) +#endif #include #include