summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-13 13:51:27 +0000
committerJim Meyering <jim@meyering.net>1998-04-13 13:51:27 +0000
commit518f85fc403e3b9c9fa75c3591b1e16778dc5c61 (patch)
tree7ad747bfbdea19f7bd20eeda3c13e64a5604d28c
parent48990a90787544be6db7510be35061dffab774ab (diff)
downloadcoreutils-518f85fc403e3b9c9fa75c3591b1e16778dc5c61.tar.xz
.
-rw-r--r--lib/safe-read.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/safe-read.h b/lib/safe-read.h
index 3734671de..be957a669 100644
--- a/lib/safe-read.h
+++ b/lib/safe-read.h
@@ -1,2 +1,10 @@
+#ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
+#endif
+
ssize_t
-safe_read (int desc, char *ptr, size_t len);
+safe_read PARAMS ((int desc, char *ptr, size_t len));