Build on kfreebsd-gnu

Mikael Hedin <[email protected]> Tue, 28 Dec 2004 15:54:45 +0100
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Hi, there is a patch in the Debian BTS to build libdvdread on kfreebsd-gnu, do 
you see any problem in applying it?

/Micce

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272499

diff -ur libdvdread-0.9.4.old/dvdread/bswap.h libdvdread-0.9.4/dvdread/bswap.h
--- libdvdread-0.9.4.old/dvdread/bswap.h 2002-12-15 01:09:12.000000000 +0100
+++ libdvdread-0.9.4/dvdread/bswap.h 2004-09-20 14:15:18.000000000 +0200
@@ -35,7 +35,7 @@
 #include <sys/param.h>
 #endif
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
 #include <byteswap.h>
 #define B2N_16(x) x = bswap_16(x)
 #define B2N_32(x) x = bswap_32(x)



-- 
Mikael Hedin, MSc +46 (0)8 344979 (home) +46 (0)70 5891533 (mobile)
[gpg key fingerprint = 387F A8DB DC2A 50E3 FE26  30C4 5793 29D3 C01B 2A22]