aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-31 17:12:24 +0000
committerYang Tse <yangsita@gmail.com>2006-07-31 17:12:24 +0000
commitf1343b2f55fe9c9c64de116252fadbc0a6105bd6 (patch)
treeebd6a3ebbb10035d4c2e0edbb0c2a92b0e6c47db /lib/setup_once.h
parent962b7985e69af076ea13da53aecf5d3650c696d5 (diff)
Force compilation failure in case macros sread() or swrite() are not defined.
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h10
1 files changed, 10 insertions, 0 deletions
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 */