The patch only includes sysmacros for linux, the only target with gnu libc to avoid regression issues.
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include "pax.h"
#include "options.h"
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include "pax.h"
#include "options.h"
#define __VA_START__(p,a) va_start(p)
#endif
#endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
#include <ast.h>
#include <ctype.h>
#include <ls.h>