From 7eb3e4364c2bcebd2fdfef52c07f5101aa03e5bb Mon Sep 17 00:00:00 2001 From: Ashwini Sharma Date: Tue, 12 Aug 2014 07:09:01 -0500 Subject: Patches to commands for issues reported from static analysis tool. portability.h.patch - it is for O_CLOEXEC, as compiler complained of it. Makefile.patch - for cleaning generated/*.o files and libopts.dat file [Fixup to uniq.c from Rob.] --- lib/portability.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index b5fc0aca..07cb276b 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -170,6 +170,10 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream); #define O_NOFOLLOW 0 #endif +#ifndef O_CLOEXEC +#define O_CLOEXEC 02000000 +#endif + #if defined(__SIZEOF_DOUBLE__) && defined(__SIZEOF_LONG__) \ && __SIZEOF_DOUBLE__ <= __SIZEOF_LONG__ typedef double FLOAT; -- cgit v1.2.3