[Openvpn-devel,v2] config.h.cmake.in: Fix issues with string functions

Message ID 20261008205006.28086-1-gert@greenie.muc.de
State New
Headers
Series [Openvpn-devel,v2] config.h.cmake.in: Fix issues with string functions |

Commit Message

Gert Doering Oct. 8, 2026, 8:50 p.m. UTC
  From: Frank Lichtenheld <frank@lichtenheld.com>

- Add missing HAVE_STRTOK_R
- Make HAVE_STRSEP a proper cmakedefine

Change-Id: I8a5349f66f5c1b52889c2f593e01c21824f937f0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Razvan Cojocaru <razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1986
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1986
This mail reflects revision 2 of this Change.

Acked-by according to Gerrit (reflected above):
Razvan Cojocaru <razvanc@mailbox.org>
  

Patch

diff --git a/config.h.cmake.in b/config.h.cmake.in
index 6c8660c..8c3088e 100644
--- a/config.h.cmake.in
+++ b/config.h.cmake.in
@@ -268,7 +268,10 @@ 
 #define HAVE_STRING_H 1
 
 /* Define to 1 if you have the `strsep' function. */
-#undef HAVE_STRSEP
+#cmakedefine HAVE_STRSEP
+
+/* Define to 1 if you have the `strtok_r' function. */
+#cmakedefine HAVE_STRTOK_R
 
 /* Define to 1 if you have the `syslog' function. */
 #cmakedefine HAVE_SYSLOG