diff --git a/include/os.h b/include/os.h index 1108b2535f..519c465ce3 100644 --- a/include/os.h +++ b/include/os.h @@ -70,7 +70,7 @@ SOFTWARE. #endif #ifndef _X_ATTRIBUTE_VPRINTF -# if defined(__GNUC__) && (__GNUC__ >= 2) +# if defined(__GNUC__) && (__GNUC__ >= 2) && (!defined(__APPLE__)) && (!defined(__FreeBSD__)) # define _X_ATTRIBUTE_VPRINTF(fmt, firstarg) \ __attribute__((__format__(gnu_printf, fmt, firstarg))) # else