diff options
-rw-r--r-- | cmds-inspect.c | 1 | ||||
-rw-r--r-- | cmds-receive.c | 1 | ||||
-rw-r--r-- | cmds-scrub.c | 1 | ||||
-rw-r--r-- | cmds-send.c | 1 | ||||
-rw-r--r-- | kerncompat.h | 2 |
5 files changed, 6 insertions, 0 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c index 56da09f9..fc3db990 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -21,6 +21,7 @@ #include <sys/ioctl.h> #include <errno.h> #include <getopt.h> +#include <limits.h> #include "kerncompat.h" #include "ioctl.h" diff --git a/cmds-receive.c b/cmds-receive.c index 071bea95..d4b31033 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -28,6 +28,7 @@ #include <wait.h> #include <assert.h> #include <getopt.h> +#include <limits.h> #include <sys/stat.h> #include <sys/types.h> diff --git a/cmds-scrub.c b/cmds-scrub.c index b7aa8091..5a85dc47 100644 --- a/cmds-scrub.c +++ b/cmds-scrub.c @@ -34,6 +34,7 @@ #include <ctype.h> #include <signal.h> #include <stdarg.h> +#include <limits.h> #include "ctree.h" #include "ioctl.h" diff --git a/cmds-send.c b/cmds-send.c index 20bba18e..a0b7f95f 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -33,6 +33,7 @@ #include <assert.h> #include <getopt.h> #include <uuid/uuid.h> +#include <limits.h> #include "ctree.h" #include "ioctl.h" diff --git a/kerncompat.h b/kerncompat.h index 5d928565..7c627ba3 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -33,7 +33,9 @@ #include <features.h> #ifndef __GLIBC__ +#ifndef BTRFS_DISABLE_BACKTRACE #define BTRFS_DISABLE_BACKTRACE +#endif #define __always_inline __inline __attribute__ ((__always_inline__)) #endif |