summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-11-03 17:22:40 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-11-03 17:22:40 +0100
commit56081da3680b7032df08fdfa55e8a034a1f1d1a4 (patch)
tree99edb3977f47de576975db81dc819c8c730936ef /lib/util
parent56852bf1fc72d821d7241ac49589072944425ea7 (diff)
downloadsamba-56081da3680b7032df08fdfa55e8a034a1f1d1a4.tar.gz
samba-56081da3680b7032df08fdfa55e8a034a1f1d1a4.tar.bz2
samba-56081da3680b7032df08fdfa55e8a034a1f1d1a4.zip
util/time: Make some functions explicitly public.
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/time.c b/lib/util/time.c
index 7216ea6e08..dc3ca68a3d 100644
--- a/lib/util/time.c
+++ b/lib/util/time.c
@@ -845,7 +845,7 @@ struct timeval convert_timespec_to_timeval(const struct timespec ts)
Return a timespec for the current time
****************************************************************************/
-struct timespec timespec_current(void)
+_PUBLIC_ struct timespec timespec_current(void)
{
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
@@ -872,7 +872,7 @@ struct timespec timespec_min(const struct timespec *ts1,
Return 1 if ts1 > ts2
****************************************************************************/
-int timespec_compare(const struct timespec *ts1, const struct timespec *ts2)
+_PUBLIC_ int timespec_compare(const struct timespec *ts1, const struct timespec *ts2)
{
if (ts1->tv_sec > ts2->tv_sec) return 1;
if (ts1->tv_sec < ts2->tv_sec) return -1;
@@ -910,7 +910,7 @@ void round_timespec_to_usec(struct timespec *ts)
Put a 8 byte filetime from a struct timespec. Uses GMT.
****************************************************************************/
-void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts)
+_PUBLIC_ void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts)
{
uint64_t d;