You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
pextlib1.0: utime.h is required by posix, no need to ifdef
git-svn-id: https://svn.macports.org/repository/macports/trunk/base@58837 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
@@ -40,10 +40,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UTIME_H
|
||||
#include <utime.h>
|
||||
#endif
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
@@ -396,7 +393,6 @@ CurlFetchCmd(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UTIME_H
|
||||
if (remotetime) {
|
||||
theCurlCode = curl_easy_getinfo(theHandle, CURLINFO_FILETIME, &theFileTime);
|
||||
if (theFileTime > 0) {
|
||||
@@ -406,7 +402,6 @@ CurlFetchCmd(Tcl_Interp* interp, int objc, Tcl_Obj* CONST objv[])
|
||||
utime(theFilePath, ×); /* set the time we got */
|
||||
}
|
||||
}
|
||||
#endif /*HAVE_UTIME_H*/
|
||||
|
||||
/* free header memory */
|
||||
curl_slist_free_all(headers);
|
||||
|
||||
Reference in New Issue
Block a user