diff options
author | Claudio Bley <cbley@av-test.de> | 2013-05-27 09:32:05 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-31 18:15:50 -0700 |
commit | 22734e4439b3609a6b621d8e7ef8465f0a2ac0d5 (patch) | |
tree | 4fbd18664300a341e7b0192387a1937a0d5d7331 /src | |
parent | e439f6e7163e3259f11f3363fa319e8a29085a92 (diff) |
Fix libXpm build with NO_ZPIPE
When NO_ZPIPE is defined, fcntl.h is not included in WrFFrI.c
although OpenWriteFile uses open, O_WRONLY, O_CREAT and O_TRUNC.
* src/WrFFrI.c: unconditionally include fcntl.h regardless
of NO_ZPIPE being defined or not.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/WrFFrI.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WrFFrI.c b/src/WrFFrI.c index 4bcaba7..067c96b 100644 --- a/src/WrFFrI.c +++ b/src/WrFFrI.c @@ -45,11 +45,12 @@ #ifndef NO_ZPIPE #include "sys/wait.h" #include "sys/types.h" -#include "fcntl.h" #include "unistd.h" #include "errno.h" #endif +#include "fcntl.h" + /* MS Windows define a function called WriteFile @#%#&!!! */ LFUNC(xpmWriteFile, int, (FILE *file, XpmImage *image, const char *name, XpmInfo *info)); |