015-getline.patch 390 B

123456789101112131415
  1. --- a/src/lxc/utils.h
  2. +++ b/src/lxc/utils.h
  3. @@ -41,11 +41,7 @@ extern int mkdir_p(const char *dir, mode
  4. extern char *get_rundir(void);
  5. /* Define getline() if missing from the C library */
  6. -#ifndef HAVE_GETLINE
  7. -#ifdef HAVE_FGETLN
  8. -#include <../include/getline.h>
  9. -#endif
  10. -#endif
  11. +#include "../include/getline.h"
  12. /* Define setns() if missing from the C library */
  13. #ifndef HAVE_SETNS