Commit 42ac2444 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Better cope with a failed or unavailable ftruncate().

Added HAVE_FTRUNCATE to all the static config-*.h files on the assumption
that all those systems provide it.
parent 31891b55
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -96,6 +96,9 @@
/* Define if you have the strstr function.  */
#define  HAVE_STRSTR 1

/* Define if you have the ftruncate function. */
#define HAVE_FTRUNCATE 1

/* Define if you have the uname function.  */
#define HAVE_UNAME 1

+1 −0
Original line number Diff line number Diff line
@@ -280,6 +280,7 @@ config.h: Makefile.netware
	@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
	@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
	@echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
	@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
	@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
	@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
	@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define HAVE_TIME_H             1
#define TIME_WITH_SYS_TIME      1
#define HAVE_TERMIOS_H          1
#define HAVE_FTRUNCATE          1

#define HAVE_PWD_H              1

+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@

#define HAVE_SETVBUF            1
#define HAVE_UTIME              1
#define HAVE_FTRUNCATE          1

#define main(x,y) curl_main(x,y)

+3 −0
Original line number Diff line number Diff line
@@ -89,6 +89,9 @@
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H

/* Define if you have the `ftruncate' function. */
#define HAVE_FTRUNCATE

/* Define if getaddrinfo exists and works */
#define HAVE_GETADDRINFO

Loading