commit 6e4f53a3f50eb987fb5a7657b2ba4eecbfac0557
parent 87f56f70d77945c284490ce779ddff0c64343e41
Author: sin <sin@2f30.org>
Date: Wed, 4 Feb 2015 18:06:57 +0000
Remember to #undef __errordecl
Thanks zhasha for spotting this.
Diffstat:
5 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/stdio.h b/include/stdio.h
@@ -58,6 +58,8 @@ __errordecl(__snprintf_error, "snprintf: buffer overflow detected");
snprintf(s, _n, fmt, ## __VA_ARGS__); \
})
+#undef __errordecl
+
#endif
#endif
diff --git a/include/string.h b/include/string.h
@@ -224,6 +224,8 @@ __fortify_strlcpy(char *dest, const char *src, size_t n)
#define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n)
#endif
+#undef __errordecl
+
#endif
#endif
diff --git a/include/strings.h b/include/strings.h
@@ -47,6 +47,8 @@ __fortify_bzero(void *src, size_t n)
#define bzero(src, n) __fortify_bzero(src, n)
#endif
+#undef __errordecl
+
#endif
#endif
diff --git a/include/sys/socket.h b/include/sys/socket.h
@@ -43,6 +43,8 @@ __fortify_recvfrom(int sockfd, void *buf, size_t n, int flags, struct sockaddr *
#undef recvfrom
#define recvfrom(sockfd, buf, n, flags, sa, salen) __fortify_recvfrom(sockfd, buf, n, flags, sa, salen)
+#undef __errordecl
+
#endif
#endif
diff --git a/include/unistd.h b/include/unistd.h
@@ -43,6 +43,8 @@ __fortify_read(int fd, void *buf, size_t n)
#undef read
#define read(fd, buf, n) __fortify_read(fd, buf, n)
+#undef __errordecl
+
#endif
#endif