diff --git a/Makefile b/Makefile index 6e5d0e56..7363d5db 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,7 @@ CFLAGS+=-std=gnu11 -O2 -g -MMD -Wall -fPIC \ -DNO_BCACHEFS_FS \ -DNO_BCACHEFS_SYSFS \ -DVERSION_STRING='"$(VERSION)"' \ + -D__SANE_USERSPACE_TYPES__ \ $(EXTRA_CFLAGS) # Intenionally not doing the above to $(LDFLAGS) because we rely on diff --git a/include/linux/types.h b/include/linux/types.h index 6ae97c42..004d5eb0 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -10,7 +10,9 @@ #include #include +#ifndef __SANE_USERSPACE_TYPES__ #define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ +#endif #include #include