diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 | ||||
-rw-r--r-- | include/platform.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6358e65..dd82e97 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -33,6 +33,9 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> +#ifndef major +# include <sys/sysmacros.h> +#endif #include <sys/wait.h> #include <termios.h> #include <time.h> diff --git a/include/platform.h b/include/platform.h index 9d6e216..f0b8ec1 100644 --- a/include/platform.h +++ b/include/platform.h @@ -362,7 +362,7 @@ typedef unsigned smalluint; #endif -#if defined(__GLIBC__) +#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L) || defined(__GLIBC__) # define fdprintf dprintf #endif |