Mercurial > hg > minc-tools
changeset 1705:82a0f8eced29
Conditionally include fcntl.h
author | bert <bert> |
---|---|
date | Tue, 23 Mar 2004 21:16:05 +0000 |
parents | 662b76ca737e |
children | 06716c478dfe |
files | libsrc/netcdf_convenience.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libsrc/netcdf_convenience.c +++ b/libsrc/netcdf_convenience.c @@ -36,7 +36,10 @@ @CREATED : July 27, 1992. (Peter Neelin, Montreal Neurological Institute) @MODIFIED : * $Log: netcdf_convenience.c,v $ - * Revision 6.9 2003-12-01 22:45:58 stever + * Revision 6.10 2004-03-23 21:16:05 bert + * Conditionally include fcntl.h + * + * Revision 6.9 2003/12/01 22:45:58 stever * Check for fork(); use for file decompression if available * * Revision 6.8 2003/03/17 16:15:33 bert @@ -139,7 +142,7 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/netcdf_convenience.c,v 6.9 2003-12-01 22:45:58 stever Exp $ MINC (MNI)"; +static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/netcdf_convenience.c,v 6.10 2004-03-23 21:16:05 bert Exp $ MINC (MNI)"; #endif #include "config.h" /* From configure */ @@ -157,6 +160,10 @@ #include <sys/stat.h> /* For S_IREAD, S_IWRITE */ #endif +#if HAVE_FCNTL_H +#include <fcntl.h> +#endif + /* Private functions */ private int execute_decompress_command(char *command, char *infile, char *outfile, int header_only);