File: solaris.h

package info (click to toggle)
libnet-rawip-perl 0.25-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: perl: 1,290; ansic: 745; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Some stuff to make Solaris look a little like Linux for compiling
 */

/*
 * Setup __LITTLE_ENDIAN, __BIG_ENDIAN, and __BYTE_ORDER
 */

#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN    4321

#if defined(_BIG_ENDIAN)
   #define __BYTE_ORDER __BIG_ENDIAN
#else
   #define __BYTE_ORDER __LITTLE_ENDIAN
#endif


#include <sys/int_types.h>

/*
 * Some types
 */

typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;