summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 19421a9dd..926def957 100644
--- a/src/system.h
+++ b/src/system.h
@@ -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"