diff options
| author | TitanSnow <[email protected]> | 2017-05-07 12:48:02 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-07 12:48:02 +0800 |
| commit | 28d9f65833c74f60bb4b6796a87146c93a7ac3cf (patch) | |
| tree | 14494d806b961fb78961eea9f20d30283c8e31dd | |
| parent | 5e14d9284c3540cc6d0f8feddf9c4ca01c0def32 (diff) | |
include stdio.h to avoid build error on centos
| -rw-r--r-- | core/src/xmake/sandbox/interactive.c | 1 | ||||
| -rwxr-xr-x | scripts/get.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/sandbox/interactive.c b/core/src/xmake/sandbox/interactive.c index 376056750..258256d0e 100644 --- a/core/src/xmake/sandbox/interactive.c +++ b/core/src/xmake/sandbox/interactive.c @@ -41,6 +41,7 @@ */ #include "prefix.h" #ifdef XM_CONFIG_API_HAVE_READLINE +# include <stdio.h> // on some OS (like centos) required # include <readline/readline.h> # include <readline/history.h> #endif diff --git a/scripts/get.sh b/scripts/get.sh index 59e486309..3470980ac 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -36,7 +36,7 @@ my_exit(){ } test_tools() { - prog='#include<readline/readline.h>\nint main(){readline(0);return 0;}' + prog='#include<stdio.h>\n#include<readline/readline.h>\nint main(){readline(0);return 0;}' { git --version && make --version && |
