aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2008-12-17 22:01:17 +0300
committerAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-12-18 20:30:22 +0300
commitf8461c5cf3a66ad16084082367feac23c8cab490 (patch)
treede44759fefc608cdb70d0e5911ad68f7b14153ab /compat-bsd.c
parentSparc64 (Sparc V9, LP64) support (diff)
downloadsparse-f8461c5cf3a66ad16084082367feac23c8cab490.tar.gz
sparse-f8461c5cf3a66ad16084082367feac23c8cab490.tar.bz2
sparse-f8461c5cf3a66ad16084082367feac23c8cab490.zip
OpenBSD support
This patch adds OpenBSD support to sparse. Acked-by: Christopher Li <sparse@chrisli.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'compat-bsd.c')
-rw-r--r--compat-bsd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/compat-bsd.c b/compat-bsd.c
new file mode 100644
index 0000000..4f3c8c0
--- /dev/null
+++ b/compat-bsd.c
@@ -0,0 +1,20 @@
+/*
+ * BSD Compatibility functions
+ *
+ *
+ * Licensed under the Open Software License version 1.1
+ */
+
+#include <sys/types.h>
+#include <string.h>
+
+#include "lib.h"
+#include "allocate.h"
+#include "token.h"
+
+#include "compat/mmap-blob.c"
+
+long double string_to_ld(const char *nptr, char **endptr)
+{
+ return strtod(nptr, endptr);
+}