Skip to content

Commit d1b01bc

Browse files
Disable more unsupported features
1 parent a0ba0f8 commit d1b01bc

1 file changed

Lines changed: 38 additions & 35 deletions

File tree

python_config/pyconfig.h

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/* #undef GETTIMEOFDAY_NO_TZ */
4040

4141
/* Define to 1 if you have the `accept4' function. */
42-
#define HAVE_ACCEPT4 1
42+
/* #define HAVE_ACCEPT4 1 */ // original: #define HAVE_ACCEPT4 1
4343

4444
/* Define to 1 if you have the `acosh' function. */
4545
#define HAVE_ACOSH 1
@@ -121,10 +121,10 @@
121121
#define HAVE_CLOCK 1
122122

123123
/* Define to 1 if you have the `clock_getres' function. */
124-
#define HAVE_CLOCK_GETRES 1
124+
/* #define HAVE_CLOCK_GETRES 1 */ // original: #define HAVE_CLOCK_GETRES 1
125125

126126
/* Define to 1 if you have the `clock_gettime' function. */
127-
#define HAVE_CLOCK_GETTIME 1
127+
/* #define HAVE_CLOCK_GETTIME 1 */ // original: #define HAVE_CLOCK_GETTIME 1
128128

129129
/* Define if the C compiler supports computed gotos. */
130130
/* #undef HAVE_COMPUTED_GOTOS */
@@ -206,6 +206,9 @@
206206
/* Define to 1 if you have the `dup3' function. */
207207
#define HAVE_DUP3 1
208208

209+
/* O_CLOEXEC is not supported, but ignoring it should be fine here */
210+
#define O_CLOEXEC 0
211+
209212
/* Defined when any dynamic module loading is enabled. */
210213
#undef HAVE_DYNAMIC_LOADING // original: #define HAVE_DYNAMIC_LOADING 1
211214

@@ -234,7 +237,7 @@
234237
#define HAVE_EXPM1 1
235238

236239
/* Define to 1 if you have the `faccessat' function. */
237-
#define HAVE_FACCESSAT 1
240+
/* #define HAVE_FACCESSAT 1 */ // original: #define HAVE_FACCESSAT 1
238241

239242
/* Define if you have the 'fchdir' function. */
240243
/* #define HAVE_FCHDIR 1 */ // #define HAVE_FCHDIR 1
@@ -246,7 +249,7 @@
246249
#define HAVE_FCHMODAT 1
247250

248251
/* Define to 1 if you have the `fchown' function. */
249-
#define HAVE_FCHOWN 1
252+
/* #define HAVE_FCHOWN 1 */ // original: #define HAVE_FCHOWN 1
250253

251254
/* Define to 1 if you have the `fchownat' function. */
252255
#define HAVE_FCHOWNAT 1
@@ -258,7 +261,7 @@
258261
#undef HAVE_FDATASYNC // original: #define HAVE_FDATASYNC 1
259262

260263
/* Define to 1 if you have the `fdopendir' function. */
261-
#define HAVE_FDOPENDIR 1
264+
/* #define HAVE_FDOPENDIR 1 */ // original: #define HAVE_FDOPENDIR 1
262265

263266
/* Define to 1 if you have the `fexecve' function. */
264267
#define HAVE_FEXECVE 1
@@ -285,7 +288,7 @@
285288
#define HAVE_FSEEKO 1
286289

287290
/* Define to 1 if you have the `fstatat' function. */
288-
#define HAVE_FSTATAT 1
291+
/* #define HAVE_FSTATAT 1 */ // original: #define HAVE_FSTATAT 1
289292

290293
/* Define to 1 if you have the `fstatvfs' function. */
291294
#define HAVE_FSTATVFS 1
@@ -306,7 +309,7 @@
306309
#define HAVE_FTRUNCATE 1
307310

308311
/* Define to 1 if you have the `futimens' function. */
309-
#define HAVE_FUTIMENS 1
312+
/* #define HAVE_FUTIMENS 1 */ // original: #define HAVE_FUTIMENS 1
310313

311314
/* Define to 1 if you have the `futimes' function. */
312315
#define HAVE_FUTIMES 1
@@ -350,7 +353,7 @@
350353
#undef HAVE_GETENTROPY // original: #define HAVE_GETENTROPY 1
351354

352355
/* Define to 1 if you have the `getgrouplist' function. */
353-
#define HAVE_GETGROUPLIST 1
356+
/* #define HAVE_GETGROUPLIST 1 */ // original: #define HAVE_GETGROUPLIST 1
354357

355358
/* Define to 1 if you have the `getgroups' function. */
356359
/* #define HAVE_GETGROUPS 1 */ // original: #define HAVE_GETGROUPS 1
@@ -398,7 +401,7 @@
398401
#define HAVE_GETPID 1
399402

400403
/* Define to 1 if you have the `getpriority' function. */
401-
#define HAVE_GETPRIORITY 1
404+
/* #define HAVE_GETPRIORITY 1 */ // original: #define HAVE_GETPRIORITY 1
402405

403406
/* Define to 1 if you have the `getpwent' function. */
404407
#undef HAVE_GETPWENT // original: #define HAVE_GETPWENT 1
@@ -450,7 +453,7 @@
450453
#define HAVE_IEEEFP_H 1
451454

452455
/* Define to 1 if you have the `if_nameindex' function. */
453-
#define HAVE_IF_NAMEINDEX 1
456+
/* #define HAVE_IF_NAMEINDEX 1 */ // original: #define HAVE_IF_NAMEINDEX 1
454457

455458
/* Define if you have the 'inet_aton' function. */
456459
/* #define HAVE_INET_ATON 1 */ // original: #define HAVE_INET_ATON 1
@@ -534,7 +537,7 @@
534537
#define HAVE_LINK 1
535538

536539
/* Define to 1 if you have the `linkat' function. */
537-
#define HAVE_LINKAT 1
540+
/* #define HAVE_LINKAT 1 */ // original: #define HAVE_LINKAT 1
538541

539542
/* Define to 1 if you have the <linux/can/bcm.h> header file. */
540543
/* #undef HAVE_LINUX_CAN_BCM_H */
@@ -558,7 +561,7 @@
558561
/* #undef HAVE_LINUX_TIPC_H */
559562

560563
/* Define to 1 if you have the `lockf' function. */
561-
#define HAVE_LOCKF 1
564+
/* #define HAVE_LOCKF 1 */ // original: #define HAVE_LOCKF 1
562565

563566
/* Define to 1 if you have the `log1p' function. */
564567
#define HAVE_LOG1P 1
@@ -594,7 +597,7 @@
594597
#define HAVE_MEMRCHR 1
595598

596599
/* Define to 1 if you have the `mkdirat' function. */
597-
#define HAVE_MKDIRAT 1
600+
/* #define HAVE_MKDIRAT 1 */ // #define HAVE_MKDIRAT 1
598601

599602
/* Define to 1 if you have the `mkfifo' function. */
600603
/* #define HAVE_MKFIFO 1 */ // original: #define HAVE_MKFIFO 1
@@ -633,7 +636,7 @@
633636
/* #define HAVE_NICE 1 */ // original: #define HAVE_NICE 1
634637

635638
/* Define to 1 if you have the `openat' function. */
636-
#define HAVE_OPENAT 1
639+
/* #define HAVE_OPENAT 1 */ // original: #define HAVE_OPENAT 1
637640

638641
/* Define to 1 if you have the `openpty' function. */
639642
#undef HAVE_OPENPTY // original: #define HAVE_OPENPTY 1
@@ -660,13 +663,13 @@
660663
/* #undef HAVE_POLL_H */ // original: #define HAVE_POLL_H 1
661664

662665
/* Define to 1 if you have the `posix_fadvise' function. */
663-
#define HAVE_POSIX_FADVISE 1
666+
/* #define HAVE_POSIX_FADVISE 1 */ // original: #define HAVE_POSIX_FADVISE 1
664667

665668
/* Define to 1 if you have the `posix_fallocate' function. */
666-
#define HAVE_POSIX_FALLOCATE 1
669+
/* #define HAVE_POSIX_FALLOCATE 1 */ // original: #define HAVE_POSIX_FALLOCATE 1
667670

668671
/* Define to 1 if you have the `pread' function. */
669-
#define HAVE_PREAD 1
672+
/* #define HAVE_PREAD 1 */ // original: #define HAVE_PREAD 1
670673

671674
/* Define if you have the 'prlimit' functions. */
672675
/* #undef HAVE_PRLIMIT */
@@ -702,7 +705,7 @@
702705
#define HAVE_PUTENV 1
703706

704707
/* Define to 1 if you have the `pwrite' function. */
705-
#define HAVE_PWRITE 1
708+
/* #define HAVE_PWRITE 1 */ // original: #define HAVE_PWRITE 1
706709

707710
/* Define to 1 if you have the `readlink' function. */
708711
#undef HAVE_READLINK // original: #define HAVE_READLINK 1
@@ -711,13 +714,13 @@
711714
#define HAVE_READLINKAT 1
712715

713716
/* Define to 1 if you have the `readv' function. */
714-
#define HAVE_READV 1
717+
/* #define HAVE_READV 1 */ // original: #define HAVE_READV 1
715718

716719
/* Define to 1 if you have the `realpath' function. */
717720
#define HAVE_REALPATH 1
718721

719722
/* Define to 1 if you have the `renameat' function. */
720-
#define HAVE_RENAMEAT 1
723+
/* #define HAVE_RENAMEAT 1 */ // original: #define HAVE_RENAMEAT 1
721724

722725
/* Define if readline supports append_history */
723726
/* #undef HAVE_RL_APPEND_HISTORY */
@@ -750,22 +753,22 @@
750753
#define HAVE_ROUND 1
751754

752755
/* Define to 1 if you have the `sched_get_priority_max' function. */
753-
#define HAVE_SCHED_GET_PRIORITY_MAX 1
756+
/* #define HAVE_SCHED_GET_PRIORITY_MAX 1 */ // original: #define HAVE_SCHED_GET_PRIORITY_MAX 1
754757

755758
/* Define to 1 if you have the <sched.h> header file. */
756759
#define HAVE_SCHED_H 1
757760

758761
/* Define to 1 if you have the `sched_rr_get_interval' function. */
759-
#define HAVE_SCHED_RR_GET_INTERVAL 1
762+
/* #define HAVE_SCHED_RR_GET_INTERVAL 1 */ // original: #define HAVE_SCHED_RR_GET_INTERVAL 1
760763

761764
/* Define to 1 if you have the `sched_setaffinity' function. */
762765
#define HAVE_SCHED_SETAFFINITY 1
763766

764767
/* Define to 1 if you have the `sched_setparam' function. */
765-
#define HAVE_SCHED_SETPARAM 1
768+
/* #define HAVE_SCHED_SETPARAM 1 */ //original: #define HAVE_SCHED_SETPARAM 1
766769

767770
/* Define to 1 if you have the `sched_setscheduler' function. */
768-
#define HAVE_SCHED_SETSCHEDULER 1
771+
/* #define HAVE_SCHED_SETSCHEDULER 1 */ // original: #define HAVE_SCHED_SETSCHEDULER 1
769772

770773
/* Define to 1 if you have the `select' function. */
771774
#define HAVE_SELECT 1
@@ -783,7 +786,7 @@
783786
#define HAVE_SEM_UNLINK 1
784787

785788
/* Define to 1 if you have the `sendfile' function. */
786-
#define HAVE_SENDFILE 1
789+
/* #define HAVE_SENDFILE 1 */ // original: #define HAVE_SENDFILE 1
787790

788791
/* Define to 1 if you have the `setegid' function. */
789792
/* #define HAVE_SETEGID 1 */ // original: #define HAVE_SETEGID 1
@@ -798,7 +801,7 @@
798801
/* #define HAVE_SETGROUPS 1 */ // original: #define HAVE_SETGROUPS 1
799802

800803
/* Define to 1 if you have the `sethostname' function. */
801-
#define HAVE_SETHOSTNAME 1
804+
/* #define HAVE_SETHOSTNAME 1 */ // original: #define HAVE_SETHOSTNAME 1
802805

803806
/* Define to 1 if you have the `setitimer' function. */
804807
/* #define HAVE_SETITIMER 1 */ // original: #define HAVE_SETITIMER 1
@@ -813,7 +816,7 @@
813816
/* #define HAVE_SETPGRP 1 */ // original: #define HAVE_SETPGRP 1
814817

815818
/* Define to 1 if you have the `setpriority' function. */
816-
#define HAVE_SETPRIORITY 1
819+
/* #define HAVE_SETPRIORITY 1 */ // original: #define HAVE_SETPRIORITY 1
817820

818821
/* Define to 1 if you have the `setregid' function. */
819822
/* #define HAVE_SETREGID 1 */ // original: #define HAVE_SETREGID 1
@@ -843,7 +846,7 @@
843846
#undef HAVE_SIGACTION // original: #define HAVE_SIGACTION 1
844847

845848
/* Define to 1 if you have the `sigaltstack' function. */
846-
#define HAVE_SIGALTSTACK 1
849+
/* #define HAVE_SIGALTSTACK 1 */ // original: #define HAVE_SIGALTSTACK 1
847850

848851
/* Define to 1 if you have the `siginterrupt' function. */
849852
#undef HAVE_SIGINTERRUPT // original: #define HAVE_SIGINTERRUPT 1
@@ -952,7 +955,7 @@
952955
#define HAVE_SYMLINKAT 1
953956

954957
/* Define to 1 if you have the `sync' function. */
955-
#define HAVE_SYNC 1
958+
/* #define HAVE_SYNC 1 */ // original: #define HAVE_SYNC 1
956959

957960
/* Define to 1 if you have the `sysconf' function. */
958961
/* #define HAVE_SYSCONF 1 */ // original: #define HAVE_SYSCONF 1
@@ -1017,7 +1020,7 @@
10171020
/* #undef HAVE_SYS_RANDOM_H */
10181021

10191022
/* Define to 1 if you have the <sys/resource.h> header file. */
1020-
#define HAVE_SYS_RESOURCE_H 1
1023+
/* #define HAVE_SYS_RESOURCE_H 1 */ // original: #define HAVE_SYS_RESOURCE_H 1
10211024

10221025
/* Define to 1 if you have the <sys/select.h> header file. */
10231026
#define HAVE_SYS_SELECT_H 1
@@ -1130,7 +1133,7 @@
11301133
#define HAVE_UNISTD_H 1
11311134

11321135
/* Define to 1 if you have the `unlinkat' function. */
1133-
#define HAVE_UNLINKAT 1
1136+
/* #define HAVE_UNLINKAT 1 */ // original: #define HAVE_UNLINKAT 1
11341137

11351138
/* Define to 1 if you have the `unsetenv' function. */
11361139
#define HAVE_UNSETENV 1
@@ -1144,7 +1147,7 @@
11441147
/* #undef HAVE_UTIL_H */
11451148

11461149
/* Define to 1 if you have the `utimensat' function. */
1147-
#define HAVE_UTIMENSAT 1
1150+
/* #define HAVE_UTIMENSAT 1 */ // original: #define HAVE_UTIMENSAT 1
11481151

11491152
/* Define to 1 if you have the `utimes' function. */
11501153
#define HAVE_UTIMES 1
@@ -1162,7 +1165,7 @@
11621165
/* #define HAVE_WAITID 1 */ // original: #define HAVE_WAITID 1
11631166

11641167
/* Define to 1 if you have the `waitpid' function. */
1165-
#define HAVE_WAITPID 1
1168+
/* #define HAVE_WAITPID 1 */ // original: #define HAVE_WAITPID 1
11661169

11671170
/* Define if the compiler provides a wchar.h header file. */
11681171
#define HAVE_WCHAR_H 1
@@ -1516,7 +1519,7 @@
15161519
/* #undef size_t */
15171520

15181521
/* Define to `int' if <sys/socket.h> does not define. */
1519-
#define socklen_t int // original: /* #undef socklen_t */
1522+
/* #define socklen_t int */
15201523

15211524
/* Define to `int' if <sys/types.h> doesn't define. */
15221525
/* #undef uid_t */

0 commit comments

Comments
 (0)