$OpenBSD: patch-configure,v 1.3 2018/02/13 16:08:06 sthen Exp $

Index: configure
--- configure.orig
+++ configure
@@ -4657,10 +4657,11 @@ else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <stdlib.h>
+        void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
 int
 main ()
 {
-void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
+
   ;
   return 0;
 }
