aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/setup_once.h10
-rw-r--r--lib/setup_once.h10
2 files changed, 20 insertions, 0 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h
index 065a0888e..0ca6863e2 100644
--- a/ares/setup_once.h
+++ b/ares/setup_once.h
@@ -70,6 +70,11 @@
#ifdef DJGPP
#define sread(x,y,z) (ssize_t)read_s((int)(x), (char *)(y), (int)(z))
#endif
+#ifndef sread
+ /* */
+ Error Missing_definition_of_macro_sread
+ /* */
+#endif
#endif /* HAVE_RECV */
#ifdef HAVE_SEND
@@ -92,6 +97,11 @@
#ifdef DJGPP
#define swrite(x,y,z) (ssize_t)write_s((int)(x), (char *)(y), (int)(z))
#endif
+#ifndef swrite
+ /* */
+ Error Missing_definition_of_macro_swrite
+ /* */
+#endif
#endif /* HAVE_SEND */
diff --git a/lib/setup_once.h b/lib/setup_once.h
index a570a6a4e..2e3dcc1f4 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -77,6 +77,11 @@
#ifdef DJGPP
#define sread(x,y,z) (ssize_t)read_s((int)(x), (char *)(y), (int)(z))
#endif
+#ifndef sread
+ /* */
+ Error Missing_definition_of_macro_sread
+ /* */
+#endif
#endif /* HAVE_RECV */
#ifdef HAVE_SEND
@@ -99,6 +104,11 @@
#ifdef DJGPP
#define swrite(x,y,z) (ssize_t)write_s((int)(x), (char *)(y), (int)(z))
#endif
+#ifndef swrite
+ /* */
+ Error Missing_definition_of_macro_swrite
+ /* */
+#endif
#endif /* HAVE_SEND */