Skip to content

Commit

Permalink
Remove compat versionhelpers.h and remove cmake/configure check for it
Browse files Browse the repository at this point in the history
The cmake file defined that file to be never present in contrast to the
old msvc-config.h that always had it present.
Remove also the compat implementation taken from mingw. All our current
build environments already have that header in place.

Change-Id: I9c85ccab6d51064ebff2c391740ba8c2d044ed1a
Acked-by: Frank Lichtenheld <[email protected]>
Signed-off-by: Arne Schwabe <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg27573.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit a68595a)
  • Loading branch information
schwabe authored and cron2 committed Dec 2, 2023
1 parent cc81f01 commit 19bfb70
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 131 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ set(SOURCE_FILES
src/compat/compat-dirname.c
src/compat/compat-gettimeofday.c
src/compat/compat-strsep.c
src/compat/compat-versionhelpers.h
src/openvpn/argv.c
src/openvpn/argv.h
src/openvpn/base64.c
Expand Down
3 changes: 0 additions & 3 deletions config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,6 @@ don't. */
/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
#undef HAVE_VALGRIND_MEMCHECK_H

/* Define to 1 if you have the <versionhelpers.h> header file. */
#undef HAVE_VERSIONHELPERS_H

/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK

Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ AC_CHECK_HEADERS([ \
unistd.h dlfcn.h \
netinet/in.h netinet/in_systm.h \
netinet/tcp.h arpa/inet.h netdb.h \
versionhelpers.h \
])
AC_CHECK_HEADERS([ \
sys/time.h sys/ioctl.h sys/stat.h \
Expand Down
3 changes: 1 addition & 2 deletions src/compat/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ libcompat_la_SOURCES = \
compat-basename.c \
compat-gettimeofday.c \
compat-daemon.c \
compat-strsep.c \
compat-versionhelpers.h
compat-strsep.c
116 changes: 0 additions & 116 deletions src/compat/compat-versionhelpers.h

This file was deleted.

4 changes: 0 additions & 4 deletions src/openvpn/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@

#include "memdbg.h"

#ifdef HAVE_VERSIONHELPERS_H
#include <versionhelpers.h>
#else
#include "compat-versionhelpers.h"
#endif

#include "block_dns.h"

Expand Down
4 changes: 0 additions & 4 deletions src/openvpnserv/interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
#include <shellapi.h>
#include <mstcpip.h>

#ifdef HAVE_VERSIONHELPERS_H
#include <versionhelpers.h>
#else
#include "compat-versionhelpers.h"
#endif

#include "openvpn-msg.h"
#include "validate.h"
Expand Down

0 comments on commit 19bfb70

Please sign in to comment.