$OpenBSD: patch-src_ptlib_common_osutils_cxx,v 1.6 2018/04/13 19:50:50 naddy Exp $

Index: src/ptlib/common/osutils.cxx
--- src/ptlib/common/osutils.cxx.orig
+++ src/ptlib/common/osutils.cxx
@@ -49,7 +49,9 @@
 #include <ptlib/msos/ptlib/debstrm.h>
 #endif
 
+#include<unistd.h>
 
+
 static const char * const VersionStatus[PProcess::NumCodeStatuses] = { "alpha", "beta", "." };
 static const char DefaultRollOverPattern[] = "_yyyy_MM_dd_hh_mm";
 
@@ -1401,7 +1403,7 @@ bool PArgList::Parse(const char * spec, PBoolean optio
           return false;
         opts.m_section = PString(spec, end-spec);
         spec = end+1;
-        if (InternalSpecificationError(spec == '\0', "Empty [] clause in specification."))
+        if (InternalSpecificationError(opts.m_section.IsEmpty(), "Empty [] clause in specification."))
           return false;
       }
 
