summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index aa09c8a..c62ee34 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -117,7 +117,6 @@ getpythonpath()
/* Standard modules */
extern void inittime();
extern void initmath();
-extern void initregex();
extern void initposix();
extern void initpwd();
extern void initgrp();
@@ -146,6 +145,9 @@ extern void initfl();
extern void initpanel();
#endif
#endif
+#ifdef USE_REGEX
+extern void initregex();
+#endif
#ifdef USE_STDWIN
extern void initstdwin();
#endif
@@ -158,6 +160,9 @@ extern void initcd();
#ifdef USE_THREAD
extern void initthread();
#endif
+#ifdef USE_NIS
+extern void initnis();
+#endif
struct {
char *name;
@@ -168,7 +173,6 @@ struct {
{"time", inittime},
{"math", initmath},
- {"regex", initregex},
{"posix", initposix},
{"pwd", initpwd},
{"grp", initgrp},
@@ -204,6 +208,10 @@ struct {
#endif
#endif
+#ifdef USE_REGEX
+ {"regex", initregex},
+#endif
+
#ifdef USE_STDWIN
{"stdwin", initstdwin},
#endif
@@ -220,5 +228,9 @@ struct {
{"thread", initthread},
#endif
+#ifdef USE_NIS
+ {"nis", initnis},
+#endif
+
{0, 0} /* Sentinel */
};