rpms/kphone/FC-3 kphone-4.1.0-endian.patch,NONE,1.1
Ignacio Vazquez-Abrams (ivazquez)
fedora-extras-commits at redhat.com
Mon Mar 28 20:03:24 UTC 2005
Author: ivazquez
Update of /cvs/extras/rpms/kphone/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25935
Added Files:
kphone-4.1.0-endian.patch
Log Message:
Need the patch too
kphone-4.1.0-endian.patch:
--- NEW FILE kphone-4.1.0-endian.patch ---
--- kphone/kphone/rtpdataheader.h.orig 2005-03-23 20:50:01.904726865 -0500
+++ kphone/kphone/rtpdataheader.h 2005-03-23 20:52:47.669099809 -0500
@@ -1,25 +1,24 @@
#ifndef RTPDATAHEADER_H
#define RTPDATAHEADER_H
+#include <endian.h>
+
// For 32bit intel machines
typedef short int16;
typedef int int32;
typedef unsigned int u_int32;
typedef unsigned short u_int16;
-#define RTP_BIG_ENDIAN 0
-#define RTP_LITTLE_ENDIAN 1
-
// RTP data header
typedef __attribute__ ((__packed__)) struct {
-#if RTP_BIG_ENDIAN
+#if __BYTE_ORDER == __BIG_ENDIAN
unsigned int version:2; // protocol version
unsigned int p:1; // padding flag
unsigned int x:1; // header extension flag
unsigned int cc:4; // CSRC count
unsigned int m:1; // marker bit
unsigned int pt:7; // payload type
-#elif RTP_LITTLE_ENDIAN
+#elif __BYTE_ORDER == __LITTLE_ENDIAN
unsigned int cc:4; // CSRC count
unsigned int x:1; // header extension flag
unsigned int p:1; // padding flag
@@ -27,7 +26,7 @@
unsigned int pt:7; // payload type
unsigned int m:1; // marker bit
#else
-#error Define one of RTP_LITTLE_ENDIAN or RTP_BIG_ENDIAN
+#error Unusable endianness detected
#endif
unsigned int seq:16; // sequence number
u_int32 ts; // timestamp 32bits
More information about the fedora-extras-commits
mailing list