From 86ca65a820766e87817a9045143e3d1b7ad3c917 Mon Sep 17 00:00:00 2001 From: laroche Date: Fri, 20 Jul 2001 08:15:58 +0000 Subject: remove some bloat for non-s390 machines --- isys/isys.c | 3 +++ isys/probe.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'isys') diff --git a/isys/isys.c b/isys/isys.c index 17b48c72b..b787f2b92 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -862,7 +862,10 @@ static PyObject * probedListScsi(probedListObject * o, PyObject * args) { static PyObject * probedListDasd(probedListObject * o, PyObject * args) { if (!PyArg_ParseTuple(args, "")) return NULL; + +#if defined (__s390__) || defined (__s390x__) kdFindDasdList(&o->list, 0); +#endif Py_INCREF(Py_None); return Py_None; diff --git a/isys/probe.c b/isys/probe.c index 149a73a3b..39438a1e8 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -403,6 +403,7 @@ bye: return val; } +#if defined (__s390__) || defined (__s390x__) int kdFindDasdList(struct knownDevices * devices, int code) { /* patch for s390 by Oliver Paukstadt */ /* based upon code by Erik Tews */ @@ -439,6 +440,7 @@ int kdFindDasdList(struct knownDevices * devices, int code) { sortDevices); return 0; } +#endif struct knownDevices kdInit(void) { struct knownDevices kd; -- cgit