X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fxalloc.h;h=33f30d02da744c418b3ad56eb033fedfe97c92d8;hb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;hp=d9877a8b08a37be1b56dcb22f513e495894146c1;hpb=b0ffeb7eeb21920842382c302ca15ec0d758e9b6;p=tinc diff --git a/src/xalloc.h b/src/xalloc.h index d9877a8b..33f30d02 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -21,6 +21,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "system.h" + static inline void *xmalloc(size_t n) __attribute__((__malloc__)); static inline void *xmalloc(size_t n) { void *p = malloc(n); @@ -53,7 +55,7 @@ static inline void *xrealloc(void *p, size_t n) { return p; } -static inline char *xstrdup(const char *s) __attribute__((__malloc__, __nonnull__)); +static inline char *xstrdup(const char *s) __attribute__((__malloc__)) __attribute((__nonnull__)); static inline char *xstrdup(const char *s) { char *p = strdup(s);