summaryrefslogtreecommitdiffstats
path: root/PC/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/config.c')
-rw-r--r--PC/config.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/PC/config.c b/PC/config.c
index fed3745..ffe6c7a 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -29,6 +29,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
+#ifndef MS_WIN16
+/* Assume all 32-bit platforms come standard with a WINSOCK library */
+#define USE_SOCKET
+#define USE_SELECT
+#endif
+
extern void initarray();
extern void initaudioop();
extern void initbinascii();
@@ -41,8 +47,9 @@ extern void initnt();
extern void initregex();
extern void initrgbimg();
extern void initrotor();
+extern void initselect();
extern void initsignal();
-extern void initsocket();
+extern void init_socket();
extern void initsoundex();
extern void initstrop();
extern void initstruct();
@@ -72,9 +79,12 @@ struct {
{"regex", initregex},
{"rgbimg", initrgbimg},
{"rotor", initrotor},
+#ifdef USE_SELECT
+ {"select", initselect},
+#endif
{"signal", initsignal},
#ifdef USE_SOCKET
- {"socket", initsocket},
+ {"_socket", init_socket},
#endif
{"soundex", initsoundex},
{"strop", initstrop},