# sdb host tool
# =========================================================
-CC := gcc
+ifeq ($(HOST_OS),darwin)
+ CC := clang
+endif
#
ifeq ($(HOST_OS),linux)
}
}
-int __inline__ get_server_port() {
+int get_server_port() {
return DEFAULT_SDB_PORT;
}
int process_cmdline(int argc, char** argv);
void read_and_dump(int fd);
int interactive_shell(void** extargv);
-int __inline__ get_server_port();
+int get_server_port();
int __sdb_command(const char* cmd, void** extargv);
#endif /* COMMANDLINE_H_ */
static __inline__ void finalize(int srcfd, int dstfd, FILE_FUNC* srcF, FILE_FUNC* dstF);
-__inline__ void create_copy_info(COPY_INFO** info, char* srcp, char* dstp) {
+void create_copy_info(COPY_INFO** info, char* srcp, char* dstp) {
*info = (COPY_INFO*)malloc(sizeof(COPY_INFO));
(*info)->src = srcp;
(*info)->dst = dstp;
#include "file_sync_functions.h"
-__inline__ void create_copy_info(COPY_INFO** info, char* srcp, char* dstp);
+void create_copy_info(COPY_INFO** info, char* srcp, char* dstp);
int do_sync_copy(char* srcp, char* dstp, FILE_FUNC* srcF, FILE_FUNC* dstF, int is_utf8, void** ext_argv);
#endif /* FILE_SYNC_CLIENT_H_ */