aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hermes/Utils.cpp.patch
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2015-11-12 09:23:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-12 10:23:27 +0000
commita42ff4a9dc3ba6fe1b1afed3e61ab7f139923ea2 (patch)
tree96769778fb2c1da26746b952bb411fb550fa2417 /testing/hermes/Utils.cpp.patch
parentc0a320103ec62c20c049621f8fe92941f491ef41 (diff)
downloadaports-a42ff4a9dc3ba6fe1b1afed3e61ab7f139923ea2.tar.bz2
aports-a42ff4a9dc3ba6fe1b1afed3e61ab7f139923ea2.tar.xz
testing/hermes: new aport
Hermes is an anti-spam transparent SMTP proxy http://hermes-project.com/
Diffstat (limited to 'testing/hermes/Utils.cpp.patch')
-rw-r--r--testing/hermes/Utils.cpp.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/hermes/Utils.cpp.patch b/testing/hermes/Utils.cpp.patch
new file mode 100644
index 0000000000..d5b5c16354
--- /dev/null
+++ b/testing/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