015-getline.patch 418 B

123456789101112131415
  1. --- a/src/lxc/utils.h
  2. +++ b/src/lxc/utils.h
  3. @@ -44,11 +44,7 @@ extern char *get_rundir(void);
  4. extern const char *lxc_global_config_value(const char *option_name);
  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