Include stdarg.h in src/cppstring.cpp to fix build with GCC-based

architectures:

  /usr/local/include/gtkmm-2.0/glibmm/thread.h: In function 'void Glib::thread_init(GThreadFunctions*)':

Also add USES=dos2unix (to fix patching cppstring.cpp) gnome.

PR:		237040
Submitted by:	Piotr Kubaj
This commit is contained in:
Mark Linimon 2019-04-07 01:38:09 +00:00
parent dbf7b367ba
commit 7d11ad8d62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498230
2 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,8 @@ USE_GITHUB= yes
GH_ACCOUNT= danfe
GH_TAGNAME= 10c5691
USES= pkgconfig
USES= compiler:c++11-lang dos2unix gnome pkgconfig
DOS2UNIX_FILES= src/cppstring.cc
GNU_CONFIGURE= yes
USE_XORG= x11
USE_GNOME= gtk20

View File

@ -0,0 +1,10 @@
--- src/cppstring.cc.orig 2019-04-05 11:08:03 UTC
+++ src/cppstring.cc
@@ -4,6 +4,7 @@
#include "cppstring.hh"
#include "idefs.h"
#include <iostream>
+#include <stdarg.h>
// #include <except.h>
#define DEF_BUFFER_SIZE 512
#define CPPSTRING_ERROR(obj,msg,retval) {obj<<"*** ERROR *** : "<<msg<<std::endl;return retval;}