Commit Diff


commit - c0597f5be8049f45cf6f501a97fbf8b7f0597094
commit + 3413106e67a4052b3d1bab7325bd0d5931b878d0
blob - 00ff0557b78accc0a89e30baae9765d4aea529fa
blob + 96ff1be88d3005c387120e87b322b96994611bcc
--- include/got_compat.h
+++ include/got_compat.h
@@ -61,6 +61,11 @@
 #define WAIT_ANY (-1)
 #endif
 
+/* SOCK_NONBLOCK isn't available across BSDs... */
+#ifndef SOCK_NONBLOCK
+#define SOCK_NONBLOCK 00004000
+#endif
+
 #ifndef __dead
 #define __dead __attribute__ ((__noreturn__))
 #endif