depot/third_party/nixpkgs/pkgs/os-specific/bsd/freebsd/rpcgen-glibc-hack.patch
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

15 lines
356 B
Diff

--- 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>