]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10167 complile issues for mac sierra
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 26 Mar 2017 14:18:38 +0000 (10:18 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 26 Mar 2017 14:18:38 +0000 (10:18 -0400)
libs/libks/src/ks_socket.c
libs/libks/src/ks_thread.c
libs/libks/src/ks_time.c

index 62c79694bf18268a014724220937e87f9ccd385c..c98fad2518bbcdceafed38aafebb45bae050d60f 100644 (file)
 
 #endif /* WIN32 */
 
+#ifndef SOL_IPV6
+#define SOL_IPV6 41
+#endif
+
 #ifdef KS_USE_POLL
 #include <poll.h>
 #endif
index cbd778dbb0e449914ccba552369d26f9d0bbdcad..e450fb22da6acc73b0e78b2aa8086914286481b7 100644 (file)
@@ -46,7 +46,8 @@ KS_DECLARE(ks_pid_t) ks_thread_self_id(void)
 #elif gettid
        return gettid();
 #else
-       return syscall(SYS_gettid);
+       return (ks_pid_t) pthread_self();
+       //return syscall(SYS_gettid);
 #endif
 }
 
index 1805b61c084372a34df6fbe2ab96c6803090c0f5..8e5166884f7f51bae42bd42df38818027798049a 100644 (file)
@@ -243,7 +243,7 @@ KS_DECLARE(void) ks_sleep(ks_time_t microsec)
        clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL);
 #elif defined(__APPLE__)
        ts.tv_sec = ks_time_sec(microsec);
-       ts.tv_nsec = ks_time_usec(microsec) * 850;
+       ts.tv_nsec = ks_time_usec(microsec) * 900;
        nanosleep(&ts, NULL);
 #else
        generic_sleep(microsec);