aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-02-04 13:54:44 +0000
committerMatthias Andree <matthias.andree@gmx.de>2010-02-04 13:54:44 +0000
commit04459541211a5d7a03cf59c166046a163b7509ed (patch)
treeac77e6af32b534b34c9e959b684f3457134f0f88
parent39d06b03ccd5b4b717d18156e6f4d13927466538 (diff)
downloadfetchmail-04459541211a5d7a03cf59c166046a163b7509ed.tar.gz
fetchmail-04459541211a5d7a03cf59c166046a163b7509ed.tar.bz2
fetchmail-04459541211a5d7a03cf59c166046a163b7509ed.zip
Only add format-printf attribute on GCC >= 2.
svn path=/branches/BRANCH_6-3/; revision=5476
-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.