diff --git a/rbd/resize.go b/rbd/resize.go index 1eecd2490..05a692e64 100644 --- a/rbd/resize.go +++ b/rbd/resize.go @@ -4,7 +4,10 @@ package rbd /* #cgo LDFLAGS: -lrbd +#ifndef _POSIX_C_SOURCE +// possibly defined in /usr/include/features.h already #define _POSIX_C_SOURCE 200112L +#endif #undef _GNU_SOURCE #include #include