Merge pull request #1013 from taosdata/feature/lihui

[#971]
This commit is contained in:
fangpanpan 2019-12-25 18:09:15 +08:00 committed by GitHub
commit f62ccb426e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

2
packaging/tools/get_os.sh Normal file → Executable file
View File

@ -10,5 +10,5 @@ set -e
OS=$(cat /etc/*-release | grep "^NAME=" | cut -d= -f2)
len=$(echo ${#OS})
len=$((len-2))
retval=$(echo -ne ${OS:1:${len}} | cut -d" " -f0)
retval=$(echo -ne ${OS:1:${len}} | cut -d" " -f1)
echo -ne $retval

View File

@ -23,7 +23,10 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <error.h>
#ifdef __USE_GNU
#include <error.h>
#endif
#include <argp.h>
#include <arpa/inet.h>
#include <assert.h>