aboutsummaryrefslogtreecommitdiff
path: root/libiberty/mkstemps.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-08libiberty/mkstemps.c: Include <time.h> if <sys/time.h> not available.Joel Brobecker1-0/+2
Attempting to build libiberty on LynxOS-178 fails trying to compile mkstemps.c with the following error: mkstemps.c:84:18: error: storage size of 'tv' isn't known struct timeval tv; ^ This file would normally include <sys/time.h> to get the type's definition, but unfortunately LynxOS-178 does not want us to use <sys/time.h>, only <time.h>. The configure script correctly finds this out and generates a config.h file where HAVE_SYS_TIME_H is undefined: /* Define to 1 if you have the <sys/time.h> header file. */ /* #undef HAVE_SYS_TIME_H */ This patch fixes the build issue by falling back on including <time.h> if <sys/time.h> could not be included (and provided that HAVE_TIME_H is defined, of course). libiberty/ChangeLog: * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined but not HAVE_SYS_TIME_H.
2008-07-31merge from gccDJ Delorie1-1/+5
2008-07-31merge from gccDJ Delorie1-0/+3
2006-05-28merge from gccDJ Delorie1-1/+5
2005-05-24merge from gccDJ Delorie1-10/+10
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-03-28merge from gccDJ Delorie1-3/+1
2004-04-29merge from gccDJ Delorie1-5/+1
2002-01-22merge from gccDJ Delorie1-0/+4
2001-10-17merge from gccDJ Delorie1-4/+4
2001-10-16merge from gccDJ Delorie1-6/+15
2000-07-23 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.Jeff Law1-0/+1
2000-06-15Synced with libiberty in the gcc repository.H.J. Lu1-1/+1
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+128