File: localconf.h

package info (click to toggle)
libnet-interface-perl 1.016-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,252 kB
  • ctags: 478
  • sloc: ansic: 3,397; sh: 2,736; perl: 888; makefile: 3
file content (116 lines) | stat: -rw-r--r-- 3,247 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116

/* ********************************************************************	*
 * localconf.h	version 0.01	1-23-09					*
 *									*
 *     COPYRIGHT 2008-2009 Michael Robinton <michael@bizsystems.com>	*
 *									*
 * This program is free software; you can redistribute it and/or modify	*
 * it under the terms of either:					*
 *									*
 *  a) the GNU General Public License as published by the Free		*
 *  Software Foundation; either version 2, or (at your option) any	*
 *  later version, or							*
 *									*
 *  b) the "Artistic License" which comes with this distribution.	*
 *									*
 * This program is distributed in the hope that it will be useful,	*
 * but WITHOUT ANY WARRANTY; without even the implied warranty of	*
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See either	*
 * the GNU General Public License or the Artistic License for more 	*
 * details.								*
 *									*
 * You should have received a copy of the Artistic License with this	*
 * distribution, in the file named "Artistic".  If not, I'll be glad 	*
 * to provide one.							*
 *									*
 * You should also have received a copy of the GNU General Public 	*
 * License along with this program in the file named "Copying". If not, *
 * write to the 							*
 *									*
 *	Free Software Foundation, Inc.					*
 *	59 Temple Place, Suite 330					*
 *	Boston, MA  02111-1307, USA					*
 *									*
 * or visit their web page on the internet at:				*
 *									*
 *	http://www.gnu.org/copyleft/gpl.html.				*
 * ********************************************************************	*/

#include "config.h"

#ifdef WORDS_BIGENDIAN
#define host_is_BIG_ENDIAN 1
#else
#define host_is_LITTLE_ENDIAN 1
#endif

#include "defaults.h"

#if SIZEOF_U_INT8_T == 0
#undef SIZEOF_U_INT8_T
#define SIZEOF_U_INT8_T SIZEOF_UINT8_T
typedef uint8_t u_int8_t;
#endif 

#if SIZEOF_U_INT16_T == 0
#undef SIZEOF_U_INT16_T
#define SIZEOF_U_INT16_T SIZEOF_UINT16_T
typedef uint16_t u_int16_t;
#endif

#if SIZEOF_U_INT32_T == 0
#undef SIZEOF_U_INT32_T
#define SIZEOF_U_INT32_T SIZEOF_UINT32_T
typedef uint32_t u_int32_t;
#endif

#if SIZEOF_U_INT64_T == 0
#undef SIZEOF_U_INT64_T
#define SIZEOF_U_INT64_T SIZEOF_UINT64_T
typedef uint64_t u_int64_t;
#endif

#ifdef HAVE_LINUX_NETLINK_H
#define HAVE_NETLINK_H
#include <linux/netlink.h>
#endif
#ifdef HAVE_LINUX_RTNETLINK_H
#define HAVE_RTNETLINK_H
#include <linux/rtnetlink.h>
#endif

#include "localperl.h"

/*
 *      defined if the C program should include <pthread.h>
 *      LOCAL_PERL_WANTS_PTHREAD_H
 *
 *      defined if perl was compiled to use threads
 *      LOCAL_PERL_USE_THREADS
 *
 *      defined if perl was compiled to use interpreter threads
 *      LOCAL_PERL_USE_I_THREADS
 *
 *      defined if perl was compiled to use 5005 threads
 *      LOCAL_PERL_USE_5005_THREADS
 */
   
#if defined (HAVE_PTHREAD_H) && defined (LOCAL_PERL_WANTS_PTHREAD_H)
#define LOCAL_USE_P_THREADS
#include <pthread.h>
/* only want one flavor of threads */
# ifdef HAVE_THREAD_H
# undef HAVE_THREAD_H
# endif
#endif 

#if defined (HAVE_THREAD_H) && defined (LOCAL_PERL_USE_THREADS)
#include <sched.h>
#include <thread.h>
#define LOCAL_USE_THREADS
#endif

#include "netsymbolC.inc"

#include "ni_fixups.h"
#include "ni_funct.h"