瀏覽代碼

forgotten to update gettimeofday here as well

Peter S. Mazinger 18 年之前
父節點
當前提交
9f853a2642
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ldso/include/dl-syscall.h

+ 6 - 2
ldso/include/dl-syscall.h

@@ -120,10 +120,14 @@ static inline _syscall3(int, _dl_readlink, const char *, path, char *, buf,
                         size_t, bufsiz);
 
 #ifdef __UCLIBC_HAS_SSP__
-#include <sys/time.h>
-#define __NR__dl_gettimeofday __NR_gettimeofday
+# include <sys/time.h>
+# define __NR__dl_gettimeofday __NR_gettimeofday
 static inline _syscall2(int, _dl_gettimeofday, struct timeval *, tv,
+# ifdef __USE_BSD
                         struct timezone *, tz);
+# else
+                        void *, tz);
+# endif
 #endif