Files
haikuports/net-fs/samba/patches/samba-3.6.25.patchset
2017-10-11 20:31:04 +02:00

52 lines
1.3 KiB
Plaintext

From b1dc802741c34378966fced2b0aceb432b3d8627 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Fri, 11 Apr 2014 15:46:09 +0400
Subject: settimeofday is not implemented on Haiku
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c
index 0edb58c..2b8d365 100644
--- a/source3/utils/net_time.c
+++ b/source3/utils/net_time.c
@@ -105,6 +105,14 @@ int net_time_usage(struct net_context *c, int argc, const char **argv)
return -1;
}
+#ifdef __HAIKU__
+int settimeofday(struct timeval *tv, struct timezone *tz)
+{
+set_real_time_clock(tv->tv_sec);
+return(0);
+}
+#endif //__HAIKU__
+
/* try to set the system clock */
static int net_time_set(struct net_context *c, int argc, const char **argv)
{
--
2.14.2
From 28d3ff594888b1561fd354d0de8d645869d7f6dc Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 11 Oct 2017 20:20:42 +0200
Subject: Haiku has only a typedef for uchar.
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 1beca26..7ef5d1f 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -196,7 +196,7 @@ typedef sig_atomic_t SIG_ATOMIC_T;
typedef sig_atomic_t volatile SIG_ATOMIC_T;
#endif
-#ifndef uchar
+#if !defined(uchar) && !defined(__HAIKU__)
#define uchar unsigned char
#endif
--
2.14.2