diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-10 21:01:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-11 08:06:02 +0100 |
commit | 251bcc32eed37ee10eb14ce2278ecbdcc40a7cde (patch) | |
tree | b176ee9ba996441dc9d8be8a86fc7504ef3c8752 /src | |
parent | 8587b2fff218537c6ff568ac3ef561f0d39f03ff (diff) |
configure: Provide a poor man's replacement for getline()
uClibc is one such library that doesn't implement getline()
Reported-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 431fe979..6e70c56e 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -1222,4 +1222,9 @@ static inline void sigtrap_put(void) #define RR_Rotate_All (RR_Rotate_0 | RR_Rotate_90 | RR_Rotate_180 | RR_Rotate_270) #define RR_Reflect_All (RR_Reflect_X | RR_Reflect_Y) +#ifndef HAVE_GETLINE +#include <stdio.h> +extern int getline(char **line, size_t *len, FILE *file); +#endif + #endif /* _SNA_H */ |