diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-04 13:54:44 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-04 13:54:44 +0000 |
commit | 04459541211a5d7a03cf59c166046a163b7509ed (patch) | |
tree | ac77e6af32b534b34c9e959b684f3457134f0f88 | |
parent | 39d06b03ccd5b4b717d18156e6f4d13927466538 (diff) | |
download | fetchmail-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |