monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Monotone on OpenBSD


From: Corey Halpin
Subject: [Monotone-devel] Monotone on OpenBSD
Date: Sun, 27 Feb 2005 03:17:11 -0600
User-agent: Debian Thunderbird 1.0 (X11/20050116)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  The attached patch will allow monotone-0.16 to compile on OpenBSD.

  It's been a productive weekend.  Now I have monotone on both of my
*BSD boxen.  Next step, Total World Domination.  :-)

crh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCIZAWWBjzOA9cliERAhOPAJ4is3Tvov7+whTkoR5qe/xpDvU/IACeKrFQ
Yd0DRI4ou28K3N+xsKKhKlY=
=ZqzA
-----END PGP SIGNATURE-----
diff monotone-0.16/change_set.cc monotone-0.16-patched/change_set.cc
--- monotone-0.16/change_set.cc Fri Dec 31 02:16:50 2004
+++ monotone-0.16-patched/change_set.cc Sun Feb 27 02:41:38 2005
@@ -8,6 +8,10 @@
 // stdint.h. awesome.
 #define __STDC_CONSTANT_MACROS
 
+#ifndef UINT64_C
+#define UINT64_C(c) (c ## ULL)
+#endif
+
 #include <algorithm>
 #include <iterator>
 #include <iostream>
diff monotone-0.16/main.cc monotone-0.16-patched/main.cc
--- monotone-0.16/main.cc       Fri Dec 31 02:16:53 2004
+++ monotone-0.16-patched/main.cc       Sun Feb 27 02:47:47 2005
@@ -43,7 +43,7 @@
 #define MS_STRUCTURED_EXCEPTION_HANDLING
 #include <windows.h> 
 
-#elif defined(__unix) || defined(__APPLE__) || defined(__NetBSD__)
+#elif defined(__unix) || defined(__APPLE__) || defined(__NetBSD__) || 
defined(__OpenBSD__)
 #define UNIX_STYLE_SIGNAL_HANDLING
 #include <unistd.h>
 #include <csignal>
diff monotone-0.16/numeric_vocab.hh monotone-0.16-patched/numeric_vocab.hh
--- monotone-0.16/numeric_vocab.hh      Fri Dec 31 02:16:53 2004
+++ monotone-0.16-patched/numeric_vocab.hh      Sun Feb 27 01:03:46 2005
@@ -8,7 +8,12 @@
 
 #include <limits>
 
-#include <stdint.h>
+#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+#  include <stdint.h>
+#elif defined (HAVE_INTTYPES_H)
+#  include <inttypes.h>
+#endif
 #include <boost/static_assert.hpp>
 
 typedef uint8_t u8;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]