fix build with clang6: bugfix from upstream git
This commit is contained in:
parent
42812bb1be
commit
9c09644f20
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.41 2017/07/26 22:45:18 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.42 2018/04/13 19:50:50 naddy Exp $
|
||||
|
||||
COMMENT= portable tools library
|
||||
|
||||
@ -6,7 +6,7 @@ V= 2.12.9
|
||||
DISTNAME= ptlib-${V}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
SUBST_VARS= V
|
||||
REVISION= 11
|
||||
REVISION= 12
|
||||
|
||||
SHARED_LIBS= pt 7.0
|
||||
|
||||
|
@ -1,14 +1,24 @@
|
||||
$OpenBSD: patch-src_ptlib_common_osutils_cxx,v 1.5 2017/05/07 20:48:29 espie Exp $
|
||||
$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,6 +49,8 @@
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user