change compiler to llvm in case of Mac 96/10996/1
authoryoonki.park <yoonki.park@samsung.com>
Wed, 16 Oct 2013 03:44:11 +0000 (12:44 +0900)
committeryoonki.park <yoonki.park@samsung.com>
Wed, 16 Oct 2013 03:44:11 +0000 (12:44 +0900)
Change-Id: I8b928bd3dcb8a9ddc1300e22bcda9cea910e967d
Signed-off-by: yoonki.park <yoonki.park@samsung.com>
Makefile
src/commandline.c
src/commandline.h
src/file_sync_client.c
src/file_sync_client.h

index 918b4344db189faa60aca169dd4be796cfbf395a..4a0f5fceb88bb279946da4aac30913987b04e74b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,9 @@ HOST_OS := $(shell uname -s | tr A-Z a-z | cut -d'_' -f1)
 # sdb host tool
 # =========================================================
 
-CC := gcc
+ifeq ($(HOST_OS),darwin)
+       CC := clang
+endif
 
 #
 ifeq ($(HOST_OS),linux)
index f5bd80da37a1436800fec815c8b50414d664b2cb..6f0d9fb95a73815673fa0b574ef53a197e1879cc 100755 (executable)
@@ -263,7 +263,7 @@ const char* get_basename(const char* filename)
     }
 }
 
-int __inline__ get_server_port() {
+int get_server_port() {
     return DEFAULT_SDB_PORT;
 }
 
index ea018a93b3281fe694250cecaf8db1096a9e762b..92486c9585b33f5bfb236c056c1ec6541fee259e 100644 (file)
@@ -47,7 +47,7 @@ int send_shellcommand(char* buf, void** extargv);
 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_ */
index ffc8f117024efba9fc36cdb9f6db96b05d01862c..e2c9d8f49aa5909fd78f13cdb924c5d25ca11882 100644 (file)
@@ -38,7 +38,7 @@
 
 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;
index 7bb53bb7be4344250e7f526c68432c7be8b4baa7..8381a1c937360f2a923fbebab65dac502948a424 100644 (file)
@@ -29,7 +29,7 @@
 
 #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_ */