From 7daecf9e6abf9848773ba3fd68ebb91cd3bca2d5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 2 Dec 2011 12:04:42 +0000 Subject: [PATCH] Handle OpenBSD in wxDialUpManager code. Closes #13716. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/unix/dialup.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 605ad3055c..22627d5f5c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -464,6 +464,7 @@ All: - Made wxGetLocalTimeMillis() really return local time, added wxGetUTCTimeMillis() returning what this function used to return. - Added wxCriticalSection::TryEnter() (Catalin Raceanu). +- Add support for OpenBSD to wxDialUpManager (brad0). All (GUI): diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index 2482dfb28a..094b0ba406 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -682,7 +682,7 @@ wxDialUpManagerImpl::CheckIfconfig() defined(__SOLARIS__) || defined (__SUNOS__) // need to add -a flag cmd << wxT(" -a"); -#elif defined(__LINUX__) || defined(__SGI__) +#elif defined(__LINUX__) || defined(__SGI__) || defined(__OPENBSD__) // nothing to be added to ifconfig #elif defined(__FREEBSD__) || defined(__DARWIN__) || defined(__QNX__) // add -l flag @@ -723,7 +723,8 @@ wxDialUpManagerImpl::CheckIfconfig() // dialup device under SunOS/Solaris hasModem = strstr(output.fn_str(),"ipdptp") != NULL; hasLAN = strstr(output.fn_str(), "hme") != NULL; -#elif defined(__LINUX__) || defined (__FREEBSD__) || defined (__QNX__) +#elif defined(__LINUX__) || defined (__FREEBSD__) || defined (__QNX__) || \ + defined(__OPENBSD__) hasModem = strstr(output.fn_str(),"ppp") // ppp || strstr(output.fn_str(),"sl") // slip || strstr(output.fn_str(),"pl"); // plip