aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 424ca209..a32a3422 100644
--- a/socket.h
+++ b/socket.h
@@ -46,6 +46,11 @@ Returns number of bytes successfully written.
*/
int SockWrite(int sock, char *buf, int size);
+/* from /usr/include/sys/cdefs.h */
+#if !defined __GNUC__ || __GNUC__ < 2
+# define __attribute__(xyz) /* Ignore. */
+#endif
+
/*
Send formatted output to the socket (matches interface of fprintf).
Returns number of bytes successfully written.