diff --git a/src/lxc/bdev/bdev.h b/src/lxc/bdev/bdev.h index 3f21e8404..1ffb590aa 100644 --- a/src/lxc/bdev/bdev.h +++ b/src/lxc/bdev/bdev.h @@ -33,6 +33,13 @@ #include "config.h" +/* Define getline() if missing from the C library */ +#ifndef HAVE_GETLINE +#ifdef HAVE_FGETLN +#include <../../include/getline.h> +#endif +#endif + /* define constants if the kernel/glibc headers don't define them */ #ifndef MS_DIRSYNC #define MS_DIRSYNC 128