Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
[python/dscho.git] / RISCOS / pyconfig.h
blob9a34d41d65d9a344561ef720e5a7f512f80575b5
1 /* RISCOS/pyconfig.h: Python configuration for RISC OS */
3 #ifndef Py_PYCONFIG_H
4 #define Py_PYCONFIG_H
6 /* Define if on AIX 3.
7 System headers sometimes define this.
8 We just want to avoid a redefinition error message. */
9 #ifndef _ALL_SOURCE
10 #undef _ALL_SOURCE
11 #endif
13 /* Define if type char is unsigned and you are not using gcc. */
14 #ifndef __CHAR_UNSIGNED__
15 #undef __CHAR_UNSIGNED__
16 #endif
18 /* Define to empty if the keyword does not work. */
19 #undef const
21 /* Define to `int' if <sys/types.h> doesn't define. */
22 #undef gid_t
24 /* Define if your struct tm has tm_zone. */
25 #undef HAVE_TM_ZONE
27 /* Define if you don't have tm_zone but do have the external array
28 tzname. */
29 #undef HAVE_TZNAME
31 /* Define to `int' if <sys/types.h> doesn't define. */
32 #undef mode_t
34 /* Define to `long' if <sys/types.h> doesn't define. */
35 #undef off_t
37 /* Define to `int' if <sys/types.h> doesn't define. */
38 #undef pid_t
40 /* Define if the system does not provide POSIX.1 features except
41 with this defined. */
42 #undef _POSIX_1_SOURCE
44 /* Define if you need to in order for stat and other things to work. */
45 #undef _POSIX_SOURCE
47 /* Define as the return type of signal handlers (int or void). */
48 #define RETSIGTYPE void
50 /* Define to `unsigned' if <sys/types.h> doesn't define. */
51 #undef size_t
53 /* Define if you have the ANSI C header files. */
54 #define STDC_HEADERS 1
56 /* Define if you can safely include both <sys/time.h> and <time.h>. */
57 #undef TIME_WITH_SYS_TIME
59 /* Define if your <sys/time.h> declares struct tm. */
60 #define TM_IN_SYS_TIME 1
62 /* Define to `int' if <sys/types.h> doesn't define. */
63 #undef uid_t
65 /* Define if your processor stores words with the most significant
66 byte first (like Motorola and SPARC, unlike Intel and VAX). */
67 #undef WORDS_BIGENDIAN
69 /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r
70 and you want support for AIX C++ shared extension modules. */
71 #undef AIX_GENUINE_CPLUSPLUS
73 /* Define if your compiler botches static forward declarations
74 (as it does on SCI ODT 3.0) */
75 #undef BAD_STATIC_FORWARD
77 /* Define this if you have BeOS threads */
78 #undef BEOS_THREADS
80 /* Define if you have the Mach cthreads package */
81 #undef C_THREADS
83 /* Define to `long' if <time.h> doesn't define. */
84 #undef clock_t
86 /* Defined on Solaris to see additional function prototypes. */
87 #undef __EXTENSIONS__
89 /* This must be set to 64 on some systems to enable large file support */
90 #undef _FILE_OFFSET_BITS
92 /* Define if getpgrp() must be called as getpgrp(0). */
93 #undef GETPGRP_HAVE_ARG
95 /* Define if gettimeofday() does not have second (timezone) argument
96 This is the case on Motorola V4 (R40V4.2) */
97 #undef GETTIMEOFDAY_NO_TZ
99 /* Define this if your time.h defines altzone */
100 #undef HAVE_ALTZONE
102 /* Define if --enable-ipv6 is specified */
103 #undef ENABLE_IPV6
105 /* Define if sockaddr has sa_len member */
106 #undef HAVE_SOCKADDR_SA_LEN
108 /* struct addrinfo (netdb.h) */
109 #undef HAVE_ADDRINFO
111 /* struct sockaddr_storage (sys/socket.h) */
112 #undef HAVE_SOCKADDR_STORAGE
114 /* Defined when any dynamic module loading is enabled */
115 #define HAVE_DYNAMIC_LOADING 1
117 /* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */
118 #undef HAVE_GETC_UNLOCKED
120 /* Define this if you have some version of gethostbyname_r() */
121 #undef HAVE_GETHOSTBYNAME_R
123 /* Define this if you have the 3-arg version of gethostbyname_r() */
124 #undef HAVE_GETHOSTBYNAME_R_3_ARG
126 /* Define this if you have the 5-arg version of gethostbyname_r() */
127 #undef HAVE_GETHOSTBYNAME_R_5_ARG
129 /* Define this if you have the 6-arg version of gethostbyname_r() */
130 #undef HAVE_GETHOSTBYNAME_R_6_ARG
132 /* Defined to enable large file support when an off_t is bigger than a long
133 and long long is available and at least as big as an off_t. You may need
134 to add some flags for configuration and compilation to enable this mode.
135 E.g, for Solaris 2.7:
136 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" OPT="-O2 $CFLAGS" \
137 configure
139 #undef HAVE_LARGEFILE_SUPPORT
141 /* Define this if you have the type long long */
142 #define HAVE_LONG_LONG
144 /* Define if your compiler supports function prototypes */
145 #define HAVE_PROTOTYPES 1
147 /* Define if you have GNU PTH threads */
148 #undef HAVE_PTH
150 /* Define if you have readline 4.2 */
151 #undef HAVE_RL_COMPLETION_MATCHES
153 /* Define if your compiler supports variable length function prototypes
154 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
155 #define HAVE_STDARG_PROTOTYPES 1
157 /* Define this if you have the type uintptr_t */
158 #undef HAVE_UINTPTR_T
160 /* Define if you have a useable wchar_t type defined in wchar.h; useable
161 means wchar_t must be 16-bit unsigned type. (see
162 Include/unicodeobject.h). */
163 #undef HAVE_USABLE_WCHAR_T
165 /* Define if the compiler provides a wchar.h header file. */
166 #undef HAVE_WCHAR_H
168 /* This must be defined on some systems to enable large file support */
169 #undef _LARGEFILE_SOURCE
171 /* Define if you want to have a Unicode type. */
172 #define Py_USING_UNICODE 1
174 /* Define as the integral type used for Unicode representation. */
175 #define PY_UNICODE_TYPE unsigned short
177 /* Define as the size of the unicode type. */
178 #define Py_UNICODE_SIZE 2
180 /* Define if nice() returns success/failure instead of the new priority. */
181 #undef HAVE_BROKEN_NICE
183 /* Define if you have POSIX threads */
184 #undef _POSIX_THREADS
186 /* Define if you want to build an interpreter with many run-time checks */
187 #undef Py_DEBUG
189 /* Define to force use of thread-safe errno, h_errno, and other functions */
190 #undef _REENTRANT
192 /* Define if setpgrp() must be called as setpgrp(0, 0). */
193 #undef SETPGRP_HAVE_ARG
195 /* Define to empty if the keyword does not work. */
196 #undef signed
198 /* Define if i>>j for signed int i does not extend the sign bit
199 when i < 0
201 #undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
203 /* The number of bytes in an off_t. */
204 #define SIZEOF_OFF_T 4
206 /* The number of bytes in a time_t. */
207 #define SIZEOF_TIME_T 4
209 /* The number of bytes in a pthread_t. */
210 #undef SIZEOF_PTHREAD_T
212 /* Define to `int' if <sys/types.h> doesn't define. */
213 #define socklen_t int
215 /* Define if you can safely include both <sys/select.h> and <sys/time.h>
216 (which you can't on SCO ODT 3.0). */
217 #undef SYS_SELECT_WITH_SYS_TIME
219 /* Define if a va_list is an array of some kind */
220 #define VA_LIST_IS_ARRAY 1
222 /* Define to empty if the keyword does not work. */
223 #undef volatile
225 /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
226 #undef WANT_SIGFPE_HANDLER
228 /* Define if you want wctype.h functions to be used instead of the
229 one supplied by Python itself. (see Include/unicodectype.h). */
230 #undef WANT_WCTYPE_FUNCTIONS
232 /* Define if you want documentation strings in extension modules */
233 #define WITH_DOC_STRINGS 1
235 /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
236 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
237 linker (rld). Dyld is necessary to support frameworks. */
238 #undef WITH_DYLD
240 /* Define if you want to compile in Python-specific mallocs */
241 #define WITH_PYMALLOC 1
243 /* Define if you want to produce an OpenStep/Rhapsody framework
244 (shared library plus accessory files). */
245 #undef WITH_NEXT_FRAMEWORK
247 /* Define if you want to use MacPython modules on MacOSX in unix-Python */
248 #undef USE_TOOLBOX_OBJECT_GLUE
250 /* Define if you want to compile in rudimentary thread support */
251 #undef WITH_THREAD
253 /* The number of bytes in a char. */
254 #define SIZEOF_CHAR 1
256 /* The number of bytes in a double. */
257 #define SIZEOF_DOUBLE 8
259 /* The number of bytes in a float. */
260 #define SIZEOF_FLOAT 4
262 /* The number of bytes in a fpos_t. */
263 #undef SIZEOF_FPOS_T
265 /* The number of bytes in a int. */
266 #define SIZEOF_INT 4
268 /* The number of bytes in a long. */
269 #define SIZEOF_LONG 4
271 /* The number of bytes in a long long. */
272 #define SIZEOF_LONG_LONG 8
274 /* The number of bytes in a short. */
275 #define SIZEOF_SHORT 2
277 /* The number of bytes in a uintptr_t. */
278 #undef SIZEOF_UINTPTR_T
280 /* The number of bytes in a void *. */
281 #define SIZEOF_VOID_P 4
283 /* The number of bytes in a wchar_t. */
284 #undef SIZEOF_WCHAR_T
286 /* Define if you have the _getpty function. */
287 #undef HAVE__GETPTY
289 /* Define if you have the alarm function. */
290 #undef HAVE_ALARM
292 /* Define if you have the chown function. */
293 #undef HAVE_CHOWN
295 /* Define if you have the clock function. */
296 #define HAVE_CLOCK 1
298 /* Define if you have the confstr function. */
299 #undef HAVE_CONFSTR
301 /* Define if you have the ctermid function. */
302 #undef HAVE_CTERMID
304 /* Define if you have the ctermid_r function. */
305 #undef HAVE_CTERMID_R
307 /* Define if you have the dlopen function. */
308 #undef HAVE_DLOPEN
310 /* Define if you have the dup2 function. */
311 #undef HAVE_DUP2
313 /* Define if you have the execv function. */
314 #undef HAVE_EXECV
316 /* Define if you have the fdatasync function. */
317 #undef HAVE_FDATASYNC
319 /* Define if you have the flock function. */
320 #undef HAVE_FLOCK
322 /* Define if you have the fork function. */
323 #undef HAVE_FORK
325 /* Define if you have the forkpty function. */
326 #undef HAVE_FORKPTY
328 /* Define if you have the fpathconf function. */
329 #undef HAVE_FPATHCONF
331 /* Define if you have the fseek64 function. */
332 #undef HAVE_FSEEK64
334 /* Define if you have the fseeko function. */
335 #undef HAVE_FSEEKO
337 /* Define if you have the fstatvfs function. */
338 #undef HAVE_FSTATVFS
340 /* Define if you have the fsync function. */
341 #undef HAVE_FSYNC
343 /* Define if you have the ftell64 function. */
344 #undef HAVE_FTELL64
346 /* Define if you have the ftello function. */
347 #undef HAVE_FTELLO
349 /* Define if you have the ftime function. */
350 #undef HAVE_FTIME
352 /* Define if you have the ftruncate function. */
353 #undef HAVE_FTRUNCATE
355 /* Define if you have the gai_strerror function. */
356 #undef HAVE_GAI_STRERROR
358 /* Define if you have the getaddrinfo function. */
359 #undef HAVE_GETADDRINFO
361 /* Define if you have the getcwd function. */
362 #undef HAVE_GETCWD
364 /* Define if you have the getgroups function. */
365 #undef HAVE_GETGROUPS
367 /* Define if you have the gethostbyname function. */
368 #undef HAVE_GETHOSTBYNAME
370 /* Define if you have the getlogin function. */
371 #undef HAVE_GETLOGIN
373 /* Define if you have the getnameinfo function. */
374 #undef HAVE_GETNAMEINFO
376 /* Define if you have the getpeername function. */
377 #define HAVE_GETPEERNAME
379 /* Define if you have the getpgid function. */
380 #undef HAVE_GETPGID
382 /* Define if you have the getpgrp function. */
383 #undef HAVE_GETPGRP
385 /* Define if you have the getpid function. */
386 #undef HAVE_GETPID
388 /* Define if you have the getpriority function. */
389 #undef HAVE_GETPRIORITY
391 /* Define if you have the getpwent function. */
392 #undef HAVE_GETPWENT
394 /* Define if you have the gettimeofday function. */
395 #undef HAVE_GETTIMEOFDAY
397 /* Define if you have the getwd function. */
398 #undef HAVE_GETWD
400 /* Define if you have the hstrerror function. */
401 #undef HAVE_HSTRERROR
403 /* Define if you have the hypot function. */
404 #define HAVE_HYPOT
406 /* Define if you have the inet_pton function. */
407 #define HAVE_INET_PTON 1
409 /* Define if you have the kill function. */
410 #undef HAVE_KILL
412 /* Define if you have the link function. */
413 #undef HAVE_LINK
415 /* Define if you have the lstat function. */
416 #undef HAVE_LSTAT
418 /* Define if you have the memmove function. */
419 #define HAVE_MEMMOVE 1
421 /* Define if you have the mkfifo function. */
422 #undef HAVE_MKFIFO
424 /* Define if you have the mktime function. */
425 #define HAVE_MKTIME 1
427 /* Define if you have the mremap function. */
428 #undef HAVE_MREMAP
430 /* Define if you have the nice function. */
431 #undef HAVE_NICE
433 /* Define if you have the openpty function. */
434 #undef HAVE_OPENPTY
436 /* Define if you have the pathconf function. */
437 #undef HAVE_PATHCONF
439 /* Define if you have the pause function. */
440 #undef HAVE_PAUSE
442 /* Define if you have the plock function. */
443 #undef HAVE_PLOCK
445 /* Define if you have the poll function. */
446 #undef HAVE_POLL
448 /* Define if you have the pthread_init function. */
449 #undef HAVE_PTHREAD_INIT
451 /* Define if you have the putenv function. */
452 #undef HAVE_PUTENV
454 /* Define if you have the readlink function. */
455 #undef HAVE_READLINK
457 /* Define if you have the select function. */
458 #undef HAVE_SELECT
460 /* Define if you have the setegid function. */
461 #undef HAVE_SETEGID
463 /* Define if you have the seteuid function. */
464 #undef HAVE_SETEUID
466 /* Define if you have the setgid function. */
467 #undef HAVE_SETGID
469 /* Define if you have the setlocale function. */
470 #define HAVE_SETLOCALE 1
472 /* Define if you have the setpgid function. */
473 #undef HAVE_SETPGID
475 /* Define if you have the setpgrp function. */
476 #undef HAVE_SETPGRP
478 /* Define if you have the setregid function. */
479 #undef HAVE_SETREGID
481 /* Define if you have the setreuid function. */
482 #undef HAVE_SETREUID
484 /* Define if you have the setsid function. */
485 #undef HAVE_SETSID
487 /* Define if you have the setuid function. */
488 #undef HAVE_SETUID
490 /* Define if you have the setvbuf function. */
491 #undef HAVE_SETVBUF
493 /* Define if you have the sigaction function. */
494 #undef HAVE_SIGACTION
496 /* Define if you have the siginterrupt function. */
497 #undef HAVE_SIGINTERRUPT
499 /* Define if you have the sigrelse function. */
500 #undef HAVE_SIGRELSE
502 /* Define if you have the snprintf function. */
503 #undef HAVE_SNPRINTF
505 /* Define if you have the statvfs function. */
506 #undef HAVE_STATVFS
508 /* Define if you have the strdup function. */
509 #define HAVE_STRDUP 1
511 /* Define if you have the strerror function. */
512 #define HAVE_STRERROR 1
514 /* Define if you have the strftime function. */
515 #define HAVE_STRFTIME 1
517 /* Define if you have the symlink function. */
518 #undef HAVE_SYMLINK
520 /* Define if you have the sysconf function. */
521 #undef HAVE_SYSCONF
523 /* Define if you have the tcgetpgrp function. */
524 #undef HAVE_TCGETPGRP
526 /* Define if you have the tcsetpgrp function. */
527 #undef HAVE_TCSETPGRP
529 /* Define if you have the tempnam function. */
530 #undef HAVE_TEMPNAM
532 /* Define if you have the timegm function. */
533 #undef HAVE_TIMEGM
535 /* Define if you have the times function. */
536 #undef HAVE_TIMES
538 /* Define if you have the tmpfile function. */
539 #undef HAVE_TMPFILE
541 /* Define if you have the tmpnam function. */
542 #undef HAVE_TMPNAM
544 /* Define if you have the tmpnam_r function. */
545 #undef HAVE_TMPNAM_R
547 /* Define if you have the truncate function. */
548 #undef HAVE_TRUNCATE
550 /* Define if you have the uname function. */
551 #undef HAVE_UNAME
553 /* Define if you have the waitpid function. */
554 #undef HAVE_WAITPID
556 /* Define if you have the <conio.h> header file. */
557 #undef HAVE_CONIO_H
559 /* Define if you have the <db.h> header file. */
560 #undef HAVE_DB_H
562 /* Define if you have the <db1/ndbm.h> header file. */
563 #undef HAVE_DB1_NDBM_H
565 /* Define if you have the <db_185.h> header file. */
566 #undef HAVE_DB_185_H
568 /* Define if you have the <direct.h> header file. */
569 #undef HAVE_DIRECT_H
571 /* Define if you have the <dirent.h> header file. */
572 #undef HAVE_DIRENT_H
574 /* Define if you have the <dlfcn.h> header file. */
575 #undef HAVE_DLFCN_H
577 /* Define if you have the <errno.h> header file. */
578 #define HAVE_ERRNO_H 1
580 /* Define if you have the <fcntl.h> header file. */
581 #undef HAVE_FCNTL_H
583 /* Define if you have the <gdbm/ndbm.h> header file. */
584 #undef HAVE_GDBM_NDBM_H
586 /* Define if you have the <io.h> header file. */
587 #undef HAVE_IO_H
589 /* Define if you have the <langinfo.h> header file. */
590 #undef HAVE_LANGINFO_H
592 /* Define if you have the <libutil.h> header file. */
593 #undef HAVE_LIBUTIL_H
595 /* Define if you have the <ncurses.h> header file. */
596 #undef HAVE_NCURSES_H
598 /* Define if you have the <ndbm.h> header file. */
599 #undef HAVE_NDBM_H
601 /* Define if you have the <ndir.h> header file. */
602 #undef HAVE_NDIR_H
604 /* Define if you have the <netpacket/packet.h> header file. */
605 #undef HAVE_NETPACKET_PACKET_H
607 /* Define if you have the <poll.h> header file. */
608 #undef HAVE_POLL_H
610 /* Define if you have the <process.h> header file. */
611 #undef HAVE_PROCESS_H
613 /* Define if you have the <pthread.h> header file. */
614 #undef HAVE_PTHREAD_H
616 /* Define if you have the <pty.h> header file. */
617 #undef HAVE_PTY_H
619 /* Define if you have the <signal.h> header file. */
620 #define HAVE_SIGNAL_H
622 /* Define if you have the <sys/audioio.h> header file. */
623 #undef HAVE_SYS_AUDIOIO_H
625 /* Define if you have the <sys/dir.h> header file. */
626 #undef HAVE_SYS_DIR_H
628 /* Define if you have the <sys/file.h> header file. */
629 #undef HAVE_SYS_FILE_H
631 /* Define if you have the <sys/lock.h> header file. */
632 #undef HAVE_SYS_LOCK_H
634 /* Define if you have the <sys/modem.h> header file. */
635 #undef HAVE_SYS_MODEM_H
637 /* Define if you have the <sys/ndir.h> header file. */
638 #undef HAVE_SYS_NDIR_H
640 /* Define if you have the <sys/param.h> header file. */
641 #undef HAVE_SYS_PARAM_H
643 /* Define if you have the <sys/poll.h> header file. */
644 #undef HAVE_SYS_POLL_H
646 /* Define if you have the <sys/resource.h> header file. */
647 #undef HAVE_SYS_RESOURCE_H
649 /* Define if you have the <sys/select.h> header file. */
650 #undef HAVE_SYS_SELECT_H
652 /* Define if you have the <sys/socket.h> header file. */
653 #undef HAVE_SYS_SOCKET_H
655 /* Define if you have the <sys/stat.h> header file. */
656 #define HAVE_SYS_STAT_H 1
658 /* Define if you have the <sys/time.h> header file. */
659 #undef HAVE_SYS_TIME_H
661 /* Define if you have the <sys/times.h> header file. */
662 #undef HAVE_SYS_TIMES_H
664 /* Define if you have the <sys/types.h> header file. */
665 #define HAVE_SYS_TYPES_H 1
667 /* Define if you have the <sys/un.h> header file. */
668 #undef HAVE_SYS_UN_H
670 /* Define if you have the <sys/utsname.h> header file. */
671 #undef HAVE_SYS_UTSNAME_H
673 /* Define if you have the <sys/wait.h> header file. */
674 #undef HAVE_SYS_WAIT_H
676 /* Define if you have the <termios.h> header file. */
677 #undef HAVE_TERMIOS_H
679 /* Define if you have the <thread.h> header file. */
680 #undef HAVE_THREAD_H
682 /* Define if you have the <unistd.h> header file. */
683 #define HAVE_UNISTD_H 1
685 /* Define if you have the <utime.h> header file. */
686 #undef HAVE_UTIME_H
688 /* Define if you have the dl library (-ldl). */
689 #undef HAVE_LIBDL
691 /* Define if you have the dld library (-ldld). */
692 #undef HAVE_LIBDLD
694 /* Define if you have the ieee library (-lieee). */
695 #undef HAVE_LIBIEEE
697 #ifdef __CYGWIN__
698 #ifdef USE_DL_IMPORT
699 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
700 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
701 #else
702 #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
703 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
704 #endif
705 #endif
707 /* Define the macros needed if on a UnixWare 7.x system. */
708 #if defined(__USLC__) && defined(__SCO_VERSION__)
709 #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
710 #endif
713 #define DONT_HAVE_FSTAT 1
714 #define DONT_HAVE_STAT 1
716 #define PLATFORM "riscos"
718 #endif /* Py_PYCONFIG_H */