mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 14:13:06 +00:00
bdev: include own getline function in bdev.h
Fixes android build error: bdev/bdev.c: In function 'detect_fs': bdev/bdev.c:686:2: error: implicit declaration of function 'getline' [-Werror=implicit-function-declaration] while (getline(&line, &linelen, f) != -1) { ^ Signed-off-by: Christian Brauner <cbrauner@suse.de>
This commit is contained in:
parent
813d7f1453
commit
8c2e2e8f53
@ -33,6 +33,13 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#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 */
|
/* define constants if the kernel/glibc headers don't define them */
|
||||||
#ifndef MS_DIRSYNC
|
#ifndef MS_DIRSYNC
|
||||||
#define MS_DIRSYNC 128
|
#define MS_DIRSYNC 128
|
||||||
|
Loading…
Reference in New Issue
Block a user