Displaying 20 results from an estimated 28 matches for "__openbsd__".
2012 Jan 05
0
[LLVMdev] [PATCH] [compiler-rt] Minix (w.r.t. svn r147606)
...xt part --------------
Index: test/Unit/endianness.h
===================================================================
--- test/Unit/endianness.h (revision 147606)
+++ test/Unit/endianness.h (working copy)
@@ -36,7 +36,7 @@
/* .. */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonflyBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonflyBSD__) || defined(__minix)
#include <sys/endian.h>
#if _BYTE_ORDER == _BIG_ENDIAN
Index: lib/int_endianness.h
======================================================...
2006 Apr 17
3
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
...rted only once for each
function it appears in.)
78 #ifndef __FreeBSD__
79 // Make it a process local mutex
80 errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE);
81 #endif
So I modified both occurrences of __FreeBSD__ to also check for
__OpenBSD__.
The next problem was INT8_MAX, etc., weren't being defined.
include/llvm/Support/DataTypes.h.in is inadequate for this platform. I
dumped a set of definitions into each file that wanted them as a bodge.
Better autoconf tests could set up INT8_MAX, etc., on all platforms that
don't define...
2006 Apr 17
0
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
I just added __OpenBSD__ everywhere __FreeBSD__ was being tested (there
were about a dozen places). I suspect we'll have to add one for NetBSD
also one day (even DragonflyBSD?). INT8_MAX and friends ought to be
declared by <stdint.h>. It is on FreeBSD.
Ralph Corderoy wrote:
>Hi again,
>
>I wrote:...
2004 May 17
0
openbsd compilation fails for recent checkout of v1-0_stable
This has been mentioned before on this list, but in order for md5.c to
compile successfully (OpenBSD 3.3), the following must change in md5.c:
#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
# include <sys/endian.h>
Change this to be:
#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
# include <machine/types.h>
# include <machine/endian.h>
And -E is an invalid linker option, so the Makefile needs to be changed:
ifeq (${OSARCH},Darwin)
OBJS+=poll.o dl...
2006 Apr 18
1
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
...based on a somewhat archaic optiminzation backend and procedural stuff is pretty dated in the RTL layer.. Aho and Ullman can only take you so far..
Then you need to use the FORCE.. LUKE use the force.. of llvm that is.
:) cheers all.
Jeff Cohen <jeffc at jolt-lang.org> wrote: I just added __OpenBSD__ everywhere __FreeBSD__ was being tested (there
were about a dozen places). I suspect we'll have to add one for NetBSD
also one day (even DragonflyBSD?). INT8_MAX and friends ought to be
declared by . It is on FreeBSD.
Ralph Corderoy wrote:
>Hi again,
>
>I wrote:
>
>
>...
2007 Dec 01
1
OpenBSD related patches
Hello, list !
Here is diff of changes, i had to make to get swfdec running on
OpenBSD 4.2-current.
Regards Valery.
P.S. Please cc me, i am not subscribed to the list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swfdec.diff
Type: application/octet-stream
Size: 11628 bytes
Desc: not available
Url :
2012 Jun 13
0
[LLVMdev] [Patch] compiler-rt lib/int_endianness.h
...hich is a newly
launched OS that uses clang as it's compiler.
diff --git a/lib/int_endianness.h b/lib/int_endianness.h
index 70bd177..f821f9a 100644
--- a/lib/int_endianness.h
+++ b/lib/int_endianness.h
@@ -31,8 +31,8 @@
/* .. */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix)
-#include <sys/endian.h>
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix) || defined(__Bitrig__)
+#include <machine/endian.h>
#if _BYTE_ORDER == _BIG_ENDIAN
#define _...
2000 Aug 17
1
patch for netbsd
...LIBAO_OBJS="$LIBAO_OBJS ao_oss.o"
$NetBSD: patch-ac,v 1.1.1.1 2000/08/17 16:56:18 itojun Exp $
--- vorbis-tools/libao/ao_oss.c- Fri Aug 18 01:34:24 2000
+++ vorbis-tools/libao/ao_oss.c Fri Aug 18 01:34:32 2000
@@ -32,3 +32,3 @@
#include <math.h>
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <soundcard.h>
$NetBSD: patch-ad,v 1.1.1.1 2000/08/17 16:56:18 itojun Exp $
--- vorbis-tools/Makefile.in- Fri Aug 18 01:37:11 2000
+++ vorbis-tools/Makefile.in Fri Aug 18 01:37:18 2000
@@ -31,3 +31,3 @@
RANLIB=@RANLIB@
-LIBS=@LIB...
2008 Jan 11
1
[LLVMdev] Patch for NetBSD support in CBackend.cpp
...-1323,7 +1323,7 @@ static void generateCompilerSpecificCode
<< "extern void *__builtin_alloca(unsigned int);\n"
<< "#endif\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
- << "#elif defined(__FreeBSD__) || defined(__OpenBSD__)\n"
+ << "#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#elif defined(_MSC_VER)\n"
<< "#define inline _inline\n"
2012 Jan 19
3
RFC PATCH: bring OpenBSD stdarg in line with FreeBSD one
...though. :( Any OpenBSD
enthusiasts care to comment?
Tim.
diff --git a/xen/include/xen/stdarg.h b/xen/include/xen/stdarg.h
index 57e2c0e..cb870ac 100644
--- a/xen/include/xen/stdarg.h
+++ b/xen/include/xen/stdarg.h
@@ -1,9 +1,7 @@
#ifndef __XEN_STDARG_H__
#define __XEN_STDARG_H__
-#if defined(__OpenBSD__)
-# include "/usr/include/stdarg.h"
-#elif defined (__NetBSD__)
+#if defined(__OpenBSD__) || defined(__NetBSD__)
typedef __builtin_va_list va_list;
# define va_start(ap, last) __builtin_stdarg_start((ap), (last))
# define va_end(ap) __builtin_va_end(ap)
2003 May 01
1
Disc quotas bug
...lt;0) || (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 1)<0))
#else
if ((sys_stat(path, &S)<0) || (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 0)<0))
- return (False);
#endif /* ifdef HPUX */
+ return (False);
#endif /* !defined(__FreeBSD__) && !defined(AIX) && !defined(__OpenBSD__) */
euser_id = geteuid();
#ifdef HPUX
/* for HPUX, real uid must be same as euid to execute quotactl for euid */
save_re_uid();
if (set_re_uid() != 0) return False;
2004 Nov 12
0
more 'Quota/disk space display in windows'
...e {
dfree_retval = ((*bsize)/1024)*(*dfree);
would do the job to report the correct number of 1024 byte blocks to
Windows.
however, I'm seeing a report of twice the size, which indicates that
*bsize is set to 1024.
in /source/smbd/quotas.c I find this
#if defined(__FreeBSD__) || defined(__OpenBSD__)
*bsize = DEV_BSIZE;
great. so the blocksize is set, however I am failing miserably to
find the actual definition of DEV_BSIZE, except to see it seems to
come from STAT_ST_BLOCKSIZE, which may or may not be set to 512, the
'configure' file is out of my league, and that is where it s...
2001 Mar 07
0
src/main/arithmetic.c on OpenBSD (PR#863)
...but I did have one minor glitch in
compiling R. OpenBSD 2.8's math.h does not export the "struct
exception" unless you define __LIBM_PRIVATE. The attached patch is
all that is needed to make it compile. Feel free to apply this patch
in future releases, or not (maybe with "#ifdef __OpenBSD__" around it).
Again, thanks for the software.
Ian Darwin
ian@darwinsys.com
--- src/main/arithmetic.c.orig Tue Mar 6 17:58:18 2001
+++ src/main/arithmetic.c Tue Mar 6 18:27:38 2001
@@ -22,7 +22,9 @@
#include <config.h>
#endif
-#include "Defn.h" /*-> Arith.h */
+#defi...
2002 Apr 10
1
libao: FreeBSD OSS patchlet
....h was only a compatibility symlink to sys/soundcard.h
and just went away.
>From Motoyuki Konno <motoyuki@bsdclub.org>.
--- src/plugins/oss/ao_oss.c.orig Wed Apr 10 21:56:57 2002
+++ src/plugins/oss/ao_oss.c Wed Apr 10 21:57:11 2002
@@ -32,8 +32,6 @@
#include <math.h>
#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <soundcard.h>
-#elif defined(__FreeBSD__)
-#include <machine/soundcard.h>
#else
#include <sys/soundcard.h>
#endif
--
Christian "naddy" Weisgerber naddy@mips.inka.de
--- >8 ----
List archives: http://www...
2006 Apr 17
0
[LLVMdev] 1.7 Pre-Release Ready for Testing
Hi Josephm
> I would like to test but the I modigied the configure to make unknown
> = OpenBSD and Unix and go pretty far but it died right after 'supports
> mkdir' yes...
Could that have been `checking for mkdir...'?
> then the next line was 'your system is unsupported''
Have you looked at ./config.log. ./configure creates this as it runs as
a trace of the
2003 May 20
1
building under NetBSD
...le.c
@@ -49,7 +49,13 @@
give us any way to determine hardware timing, and since the
hard/kernel buffer is going to be most of or > a second, that's
just a little bit important */
+#if defined(__FreeBSD__)
+#include <machine/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>
+#else
#include <sys/soundcard.h>
+#endif
#include <sys/ioctl.h>
/* Helper; just grab some more compressed bitstream and sync it for
<p>This built, but this is not tested yet. I need to make some data to test.
I found a Micro-HOWTO at
http://www...
2009 Apr 03
1
Radio interfaces for Asterisk - ISO image distro
I just ran across these guys - looks very interesting:
http://xelatec.com/xippr/install
They distribute a self-installing ISO with Asterisk, FreePBX, and some
pre-built software to do "radio over IP". You'll need to buy the USB
radio hardware, but it looks really interesting as a pre-built system
for radio trunking using some of the Asterisk capabilities. There is
a
2000 Jul 31
0
NetBSD patches
...=================
RCS file: /usr/local/cvsroot/vorbis/vorbis-tools/libao/ao_oss.c,v
retrieving revision 1.1
diff -u -p -r1.1 ao_oss.c
- --- vorbis-tools/libao/ao_oss.c 2000/07/22 01:57:05 1.1
+++ vorbis-tools/libao/ao_oss.c 2000/07/30 03:12:05
@@ -32,6 +32,8 @@
#include <math.h>
#if defined(__OpenBSD__)
#include <soundcard.h>
+#elif defined(__NetBSD__)
+#include <soundcard.h>
#elif defined(__FreeBSD__)
#include <machine/soundcard.h>
#else
@@ -69,7 +71,11 @@ ao_oss_parse_options(ao_oss_internal_t *
}
if (state->dev == NULL)
+#ifdef __NetBSD__
+ state-&...
2006 Apr 16
2
[LLVMdev] 1.7 Pre-Release Ready for Testing
I would like to test but the I modigied the configure
to make unknown = OpenBSD and Unix and go pretty far but
it died right after 'supports mkdir' yes...
then the next line was 'your system is unsupported''
I have gcc 3.3 on OpenBSD 3.3 pro-police stack compiler...
I am only really interested in testing the C/C++ but C primarily
for my work.
regards, Joseph Altea
2009 Nov 02
0
[PATCHv4 3/6] qemu/net: add raw backend
...ing packet. offset %zd size %zd\n",
+ offset, size);
exit(1);
}
diff --git a/net.c b/net.c
index 8ac639b..1fb2f2f 100644
--- a/net.c
+++ b/net.c
@@ -93,6 +93,9 @@
#endif
#endif
+#include <netpacket/packet.h>
+#include <net/ethernet.h>
+
#if defined(__OpenBSD__)
#include <util.h>
#endif
@@ -1870,6 +1873,158 @@ static TAPState *net_tap_init(VLANState *vlan, const char *model,
#endif /* !_WIN32 */
+typedef struct RAWState {
+ VLANClientState *vc;
+ int fd;
+ uint8_t buf[4096];
+ int promisc;
+} RAWState;
+
+static int net_raw_fd_ini...