From ec302f7061b7ab4dd21bdac77dd115e75b50cbc0 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 8 Dec 2011 00:40:45 +0100 Subject: Move away from openvpn_basename() over to platform provided basename() This kicks out the openvpn_basename() function from misc.[ch] and puts glibc equivalents into compat.[ch]. This is to provide the same functionality on platforms not having a native basename() function available. In addition this patch adds dirname() which commit 0f2bc0dd92f43c91e depends. Without dirname(), openvpn won't build in Visual Studio. v2: Move all functions from compat.h to compat.c v3: Use glibc versions of basename() and dirname() instead Signed-off-by: David Sommerseth Acked-by: Alon Bar-Lev URL: http://thread.gmane.org/gmane.network.openvpn.devel/5178/focus=5215 --- syshead.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'syshead.h') diff --git a/syshead.h b/syshead.h index 38de87b..fba6f84 100644 --- a/syshead.h +++ b/syshead.h @@ -36,6 +36,8 @@ #include "config.h" #endif +#include "compat.h" + /* branch prediction hints */ #if defined(__GNUC__) # define likely(x) __builtin_expect((x),1) -- cgit