about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/freebsd/patches/13.1/rpcgen-glibc-hack.patch
blob: 3dde1a010651442b7cb39d1c20987b546be1d3d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/usr.bin/rpcgen/rpc_scan.c
+++ b/usr.bin/rpcgen/rpc_scan.c
@@ -43,8 +43,12 @@ __FBSDID("$FreeBSD$");
  */
 
 #include <sys/types.h>
 
+// glibc + compat is broken from silly indirect header guard
+#define _SYS_WAIT_H
+# include <bits/waitflags.h>
+#undef _SYS_WAIT_H
 #include <sys/wait.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>