about summary refs log tree commit homepage
path: root/ext/unicorn_http/gperf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/unicorn_http/gperf.rb')
-rw-r--r--ext/unicorn_http/gperf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/unicorn_http/gperf.rb b/ext/unicorn_http/gperf.rb
index 9765f86..330f70d 100644
--- a/ext/unicorn_http/gperf.rb
+++ b/ext/unicorn_http/gperf.rb
@@ -9,7 +9,8 @@ print buf.sub!(
   "\nstatic#$&"
 }.
 
-gsub!(
+# gperf 3.0.3 (on FreeBSD 12.0) actually uses offsetof
+gsub(
 # gperf 3.0.x used "(int)(long)", 3.1 uses "(int)(size_t)",
 #  input: {(int)(size_t)&((struct cf_pool_t *)0)->cf_pool_str3},
 # output: {offsetof(struct cf_pool_t, cf_pool_str3)},