aboutsummaryrefslogtreecommitdiffstats
path: root/community/hermes/Utils.cpp.patch
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-08-18 12:58:33 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-18 21:11:39 +0000
commitfad19051951129081c94d9ca641af6bbb1389e20 (patch)
tree4f6fac56923653086b9db2df0052a834b70b6966 /community/hermes/Utils.cpp.patch
parent5df6fbc76284929c44d2db7db6d12f675a91958c (diff)
downloadaports-fad19051951129081c94d9ca641af6bbb1389e20.tar.bz2
aports-fad19051951129081c94d9ca641af6bbb1389e20.tar.xz
testing/[various]: move to community
Moves the following packages to community after successful build and testing. bogofilter corebird fbpanel hermes libdbi-drivers luufs netsurf opencpn py-sensehat rng-tools volumeicon
Diffstat (limited to 'community/hermes/Utils.cpp.patch')
-rw-r--r--community/hermes/Utils.cpp.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/hermes/Utils.cpp.patch b/community/hermes/Utils.cpp.patch
new file mode 100644
index 0000000000..d5b5c16354
--- /dev/null
+++ b/community/hermes/Utils.cpp.patch
@@ -0,0 +1,19 @@
+--- hermes-1.9/src/Utils.cpp
++++ ../Utils.cpp.modified
+@@ -418,9 +418,15 @@
+ {
+ char buf[2048]="";
+ char *strerr;
+-// if(strerror_r(errnum,strerr,1024)!=-1)
+ #ifndef WIN32
++ #ifdef __GLIBC__
+ strerr=strerror_r(errnum,buf,2048);
++ #else
++ int retval = strerror_r(errnum, buf, sizeof buf);
++ strerr = buf;
++ if(retval != 0)
++ strcpy(buf, "error fetching error description");
++ #endif
+ #else
+ strerr="Error ";
+ #endif //WIN32