Fix for deprecated warnings related to gnu libc sys macros.
authorJose Rubio <joserubiovidales@gmail.com>
Thu, 12 Sep 2019 11:10:02 +0000 (13:10 +0200)
committerJose Rubio <joserubiovidales@gmail.com>
Thu, 12 Sep 2019 11:10:02 +0000 (13:10 +0200)
The patch only includes sysmacros for linux, the only target with gnu libc to avoid regression issues.

cde/programs/dtksh/ksh93/src/cmd/pax/format.c
cde/programs/dtksh/ksh93/src/cmd/pax/misc.c
cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c

index 4ac96eab5f0d911b87438f6e936663325656a5dd..5422ac8b3549d5d45016d657e5e8a5c68c0b5058 100644 (file)
 #define __VA_START__(p,a)      va_start(p)
 #endif
 #endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
 #include "pax.h"
 #include "options.h"
 
index ac06fc143c87fd17ecc812a5ba86a5c8787cb36a..edffb0d197b008ef501cc58b6d96bd02b8bf4fa3 100644 (file)
 #define __VA_START__(p,a)      va_start(p)
 #endif
 #endif
+
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
 #include "pax.h"
 #include "options.h"
 
index b723e9d4c0fa7d68ef9b6418af2c0c5d616e650d..8e441f88884ece1d2938c8b132d2c71fe7fc7fdc 100644 (file)
 #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>