freebsd-ports/www/gatling/files/patch-gatling.c
Vanilla I. Shu b5d8f94cc7 - Take maintainership
- Stage
- Fix some gcc warnings
- Add LICENSE
- Define OPTIONS for DOC, EXAMPLES and DEBUG
- Silence pre-install and do-install

PR:		ports/192619
Submitted by:	Marco Steinbach [coco (executive-computing.de)]
2014-08-13 03:15:31 +00:00

11 lines
448 B
C

--- gatling.c.orig 2014-08-12 18:41:26.000000000 +0200
+++ gatling.c 2014-08-12 18:42:24.000000000 +0200
@@ -1736,7 +1736,7 @@
Y=sizeof(workgroup_utf16);
x=workgroup;
y=workgroup_utf16;
-#ifdef __sun__
+#if defined(__sun__) || defined(__FreeBSD__)
if (iconv(i,(const char**)&x,&X,&y,&Y)) panic("UTF-16 conversion of workgroup failed.\n");
#else
if (iconv(i,&x,&X,&y,&Y)) panic("UTF-16 conversion of workgroup failed.\n");