From: Martin Burnicki Date: Tue, 6 Jan 2015 13:29:51 +0000 (+0100) Subject: [Bug 2695] Windows build: __func__ not supported under Windows. X-Git-Tag: NTP_4_2_8P1_BETA5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56212f19f765fb24c26c23c6051dcfc870cdfd9;p=thirdparty%2Fntp.git [Bug 2695] Windows build: __func__ not supported under Windows. bk: 54abe34f2He13n7h0B29Jh6Mz8xbRw --- diff --git a/ChangeLog b/ChangeLog index cadb66cc0..5274ed5cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2695] Windows build: __func__ not supported under Windows. --- (4.2.8p1-beta4) 2015/01/04 Released by Harlan Stenn diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index 4b531c7a2..d5c8b5f22 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -300,9 +300,13 @@ typedef int socklen_t; #define getpid _getpid #define timegm _mkgmtime #define errno_to_str isc__strerror +/* + * symbol returning the name of the current function + */ +#define __func__ __FUNCTION__ typedef int pid_t; /* PID is an int */ -typedef int ssize_t; /* ssize is an int */ +typedef int ssize_t; /* ssize is an int */ /* * Map the stream to the file number