Skip to content

Instantly share code, notes, and snippets.

@rgov
Created January 17, 2013 07:25
Show Gist options
  • Select an option

  • Save rgov/4554315 to your computer and use it in GitHub Desktop.

Select an option

Save rgov/4554315 to your computer and use it in GitHub Desktop.
Patch to socat-1.7.2.1 to prevent a conflict with stdbool.h
diff --git a/mytypes.h b/mytypes.h
index f625314..143fabf 100644
--- a/mytypes.h
+++ b/mytypes.h
@@ -7,7 +7,9 @@
/* some types and macros I miss in C89 */
+#ifndef __bool_true_false_are_defined
typedef enum { false, true } bool;
+#endif
#define Min(x,y) ((x)<=(y)?(x):(y))
#define Max(x,y) ((x)>=(y)?(x):(y))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment