Message-ID: <4F0C8745.4070207@...1114...> Date: Tue, 10 Jan 2012 19:45:25 +0100 From: David Sommerseth MIME-Version: 1.0 References: <1323301588-29815-1-git-send-email-davids@...1347...> <1323357860-2506-1-git-send-email-davids@...1347...> In-Reply-To: <1323357860-2506-1-git-send-email-davids@...1347...> Subject: Re: [Openvpn-devel] [PATCH v3] Move away from openvpn_basename() over to platform provided basename() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/12/11 16:24, David Sommerseth wrote: > 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 --- Makefile.am > | 1 + compat.c | 129 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ compat.h | > 42 +++++++++++++++++++ configure.ac | 2 +- init.c | 6 ++- > misc.c | 23 +--------- misc.h | 3 - options.c | 1 > - syshead.h | 2 + 9 files changed, 182 insertions(+), 27 > deletions(-) create mode 100644 compat.c create mode 100644 compat.h Applied to master branches on -testing and -stable commit ec302f7061b7ab4dd21bdac77dd115e75b50cbc0 Author: David Sommerseth Date: Thu Dec 8 00:40:45 2011 +0100 Signed-off-by: David Sommerseth Acked-by: Alon Bar-Lev URL: kind regards, David Sommerseth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8Mh0UACgkQDC186MBRfrpzKACZAbyca0UVkxkdtwBn5OF6bqEx CB4AnA7tpFZsvACpTjHkTYr7HTUCNiGw =qewL -----END PGP SIGNATURE-----