Created
January 17, 2013 07:25
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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