GNU/FreeBSD support in GLX: include byteswap.h for FreeBSD systems
defining __GLIBC__, as done already for Linux and Hurd (cf. bug #5613).
Also includes some more __GNU__ checks on top of those made in
commit ade4bf0907.
Thanks Petr Salinger (Debian bug #400869).
			
			
This commit is contained in:
		
							parent
							
								
									8956f63a94
								
							
						
					
					
						commit
						9423ac134a
					
				| 
						 | 
					@ -28,7 +28,7 @@
 | 
				
			||||||
#include <X11/Xmd.h>
 | 
					#include <X11/Xmd.h>
 | 
				
			||||||
#include <GL/gl.h>
 | 
					#include <GL/gl.h>
 | 
				
			||||||
#include <GL/glxproto.h>
 | 
					#include <GL/glxproto.h>
 | 
				
			||||||
#if defined(__linux__) || defined(__GNU__)
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined(__GNU__)
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
#elif defined(__OpenBSD__)
 | 
					#elif defined(__OpenBSD__)
 | 
				
			||||||
#include <sys/endian.h>
 | 
					#include <sys/endian.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@
 | 
				
			||||||
#include "dispatch.h"
 | 
					#include "dispatch.h"
 | 
				
			||||||
#include "glapioffsets.h"
 | 
					#include "glapioffsets.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __linux__
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined (__GNU__)
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
#elif defined(__OpenBSD__)
 | 
					#elif defined(__OpenBSD__)
 | 
				
			||||||
#include <sys/endian.h>
 | 
					#include <sys/endian.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,7 @@
 | 
				
			||||||
#include "indirect_size.h"
 | 
					#include "indirect_size.h"
 | 
				
			||||||
#include "indirect_reqsize.h"
 | 
					#include "indirect_reqsize.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__linux__) || defined(__GNU__)
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined(__GNU__)
 | 
				
			||||||
#  include <byteswap.h>
 | 
					#  include <byteswap.h>
 | 
				
			||||||
#  define SWAP_32(v)  do { (v) = bswap_32(v); } while(0)
 | 
					#  define SWAP_32(v)  do { (v) = bswap_32(v); } while(0)
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,7 +39,7 @@
 | 
				
			||||||
#include "glthread.h"
 | 
					#include "glthread.h"
 | 
				
			||||||
#include "dispatch.h"
 | 
					#include "dispatch.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __linux__
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined (__GNU__)
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
#elif defined(__OpenBSD__)
 | 
					#elif defined(__OpenBSD__)
 | 
				
			||||||
#include <sys/endian.h>
 | 
					#include <sys/endian.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@
 | 
				
			||||||
#include <X11/Xmd.h>
 | 
					#include <X11/Xmd.h>
 | 
				
			||||||
#include <GL/gl.h>
 | 
					#include <GL/gl.h>
 | 
				
			||||||
#include <GL/glxproto.h>
 | 
					#include <GL/glxproto.h>
 | 
				
			||||||
#if defined(__linux__) || defined(__GNU__)
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined(__GNU__)
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
#elif defined(__OpenBSD__)
 | 
					#elif defined(__OpenBSD__)
 | 
				
			||||||
#include <sys/endian.h>
 | 
					#include <sys/endian.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,7 +40,7 @@
 | 
				
			||||||
#include "dispatch.h"
 | 
					#include "dispatch.h"
 | 
				
			||||||
#include "glapioffsets.h"
 | 
					#include "glapioffsets.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __linux__
 | 
					#if defined(__linux__) || defined (__GLIBC__) || defined (__GNU__)
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
#elif defined(__OpenBSD__)
 | 
					#elif defined(__OpenBSD__)
 | 
				
			||||||
#include <sys/endian.h>
 | 
					#include <sys/endian.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue