X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..02761f6cd478e3c2c97cf6f93442747f7b029833:/src/unix/dialup.cpp diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index b71a5cc8a4..2eabc7aa2e 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -23,9 +23,9 @@ #include "wx/event.h" #include "wx/app.h" #include "wx/utils.h" + #include "wx/timer.h" #endif // !PCH -#include "wx/timer.h" #include "wx/filefn.h" #include "wx/ffile.h" #include "wx/process.h" @@ -580,9 +580,11 @@ wxDialUpManagerImpl::NetConnection wxDialUpManagerImpl::CheckConnect() } else // failed to connect { +#ifdef ENETUNREACH if(errno == ENETUNREACH) return Net_No; // network is unreachable else +#endif return Net_Unknown; // connect failed, but don't know why } }