Skip to content

Commit 503a48f

Browse files
committed
remove checks and define for vprintf() that are never used
1 parent 8139f3a commit 503a48f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ endif()
193193

194194
check_function_exists(gettimeofday LIBVNCSERVER_HAVE_GETTIMEOFDAY)
195195
check_function_exists(vfork LIBVNCSERVER_HAVE_VFORK)
196-
check_function_exists(vprintf LIBVNCSERVER_HAVE_VPRINTF)
197196
check_function_exists(mmap LIBVNCSERVER_HAVE_MMAP)
198197
check_function_exists(fork LIBVNCSERVER_HAVE_FORK)
199198
check_function_exists(ftime LIBVNCSERVER_HAVE_FTIME)
@@ -272,7 +271,7 @@ endif()
272271
if(WITH_IPv6)
273272
if(WIN32)
274273
check_include_file("ws2tcpip.h" LIBVNCSERVER_HAVE_WS2TCPIP_H)
275-
if(LIBVNCSERVER_HAVE_WS2TCPIP_H AND LIBVNCSERVER_HAVE_VPRINTF)
274+
if(LIBVNCSERVER_HAVE_WS2TCPIP_H)
276275
set(LIBVNCSERVER_IPv6 1)
277276
endif()
278277
else()

rfb/rfbconfig.h.cmakein

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@
117117
/* Define to 1 if you have the <vfork.h> header file. */
118118
#cmakedefine LIBVNCSERVER_HAVE_VFORK_H 1
119119

120-
/* Define to 1 if you have the `vprintf' function. */
121-
#cmakedefine LIBVNCSERVER_HAVE_VPRINTF 1
122-
123120
/* Define to 1 if `fork' works. */
124121
#cmakedefine LIBVNCSERVER_HAVE_WORKING_FORK 1
125122

0 commit comments

Comments
 (0)