summaryrefslogtreecommitdiff
path: root/www/gatling/files/patch-gatling.c
blob: 145cb570709a127a6e6ea9de837e35626b0fdbf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- gatling.c.orig	2020-04-07 13:25:34 UTC
+++ gatling.c
@@ -1950,7 +1950,7 @@ usage:
     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");