[BACK]Return to patch-src_zm__thread.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / zoneminder / patches

File: [cvs.NetBSD.org] / pkgsrc / security / zoneminder / patches / patch-src_zm__thread.h (download)

Revision 1.2, Mon Apr 29 21:31:13 2013 UTC (10 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Branch point for: pkgsrc-2015Q1
Changes since 1.1: +10 -2 lines

Add a number of includes hidden by libstdc++'s name space pollution.

$NetBSD: patch-src_zm__thread.h,v 1.2 2013/04/29 21:31:13 joerg Exp $

--- src/zm_thread.h.orig	2009-06-08 09:20:17.000000000 +0000
+++ src/zm_thread.h
@@ -20,6 +20,7 @@
 #ifndef ZM_THREAD_H
 #define ZM_THREAD_H
 
+#include <unistd.h>
 #include <pthread.h>
 #include "zm_exception.h"
 #include "zm_utils.h"
@@ -27,7 +28,7 @@
 class ThreadException : public Exception
 {
 public:
-    ThreadException( const std::string &message ) : Exception( stringtf( "(%d) "+message, (long int)syscall(224) ) )
+    ThreadException( const std::string &message ) : Exception( stringtf( ("(%d) "+message).c_str(), (long int)syscall(224) ) )
     {
     }
 };