summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak3
-rw-r--r--include/time.h7
-rw-r--r--libc/inet/ifaddrs.c2
-rw-r--r--libc/misc/syslog/syslog.c2
-rw-r--r--libc/sysdeps/linux/common/time.c2
5 files changed, 13 insertions, 3 deletions
diff --git a/Rules.mak b/Rules.mak
index 2535b0907..94285cc3c 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -427,6 +427,9 @@ ifeq ($(TARGET_ARCH),arm)
endif
endif
+# Please let us see private headers' parts
+CFLAGS += -DUCLIBC_INTERNAL
+
# We need this to be checked within libc-symbols.h
ifneq ($(HAVE_SHARED),y)
CFLAGS += -DSTATIC
diff --git a/include/time.h b/include/time.h
index 425b71b77..d25b40845 100644
--- a/include/time.h
+++ b/include/time.h
@@ -430,6 +430,13 @@ extern int getdate_r (__const char *__restrict __string,
__END_DECLS
+
+#ifdef UCLIBC_INTERNAL
+/* Experiment. Grep for 'libc_hidden_proto(time)' if need to revert */
+libc_hidden_proto(time)
+#endif
+
+
#endif /* <time.h> included. */
#endif /* <time.h> not already included. */
diff --git a/libc/inet/ifaddrs.c b/libc/inet/ifaddrs.c
index b9f3cbd0e..be68d97ee 100644
--- a/libc/inet/ifaddrs.c
+++ b/libc/inet/ifaddrs.c
@@ -41,7 +41,7 @@
libc_hidden_proto(socket)
libc_hidden_proto(close)
-libc_hidden_proto(time)
+/* Experimentally off - libc_hidden_proto(time) */
libc_hidden_proto(sendto)
libc_hidden_proto(recvmsg)
libc_hidden_proto(bind)
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 9d22ad5dc..ce78544b0 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -102,7 +102,7 @@ libc_hidden_proto(sigemptyset)
libc_hidden_proto(connect)
libc_hidden_proto(sprintf)
libc_hidden_proto(vsnprintf)
-libc_hidden_proto(time)
+/* Experimentally off - libc_hidden_proto(time) */
#include <bits/uClibc_mutex.h>
__UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
diff --git a/libc/sysdeps/linux/common/time.c b/libc/sysdeps/linux/common/time.c
index 4fce92aa6..a7aa153d4 100644
--- a/libc/sysdeps/linux/common/time.c
+++ b/libc/sysdeps/linux/common/time.c
@@ -11,7 +11,7 @@
#include <time.h>
#include <sys/time.h>
-libc_hidden_proto(time)
+/* Experimentally off - libc_hidden_proto(time) */
#ifdef __NR_time
_syscall1(time_t, time, time_t *, t);