ia64/xen-unstable

changeset 1184:bb70629cf346

bitkeeper revision 1.799 (4055d1bd4oP9eNVVeSlvvnj5F9We2w)

utils.c, Xc.c:
Fix building with Python 2.2.
author kaf24@scramble.cl.cam.ac.uk
date Mon Mar 15 15:54:37 2004 +0000 (2004-03-15)
parents c5f71f50a168
children a6e98694ed63
files tools/xc/py/Xc.c tools/xend/lib/utils.c
line diff
     1.1 --- a/tools/xc/py/Xc.c	Mon Mar 15 15:11:48 2004 +0000
     1.2 +++ b/tools/xc/py/Xc.c	Mon Mar 15 15:54:37 2004 +0000
     1.3 @@ -7,6 +7,11 @@
     1.4  #include <Python.h>
     1.5  #include <xc.h>
     1.6  
     1.7 +/* Needed for Python versions earlier than 2.3. */
     1.8 +#ifndef PyMODINIT_FUNC
     1.9 +#define PyMODINIT_FUNC DL_EXPORT(void)
    1.10 +#endif
    1.11 +
    1.12  static PyObject *xc_error, *zero;
    1.13  
    1.14  typedef struct {
     2.1 --- a/tools/xend/lib/utils.c	Mon Mar 15 15:11:48 2004 +0000
     2.2 +++ b/tools/xend/lib/utils.c	Mon Mar 15 15:54:37 2004 +0000
     2.3 @@ -23,6 +23,11 @@
     2.4  #include <xc.h>
     2.5  #include <asm-xeno/control_if.h>
     2.6  
     2.7 +/* Needed for Python versions earlier than 2.3. */
     2.8 +#ifndef PyMODINIT_FUNC
     2.9 +#define PyMODINIT_FUNC DL_EXPORT(void)
    2.10 +#endif
    2.11 +
    2.12  /* NB. The following should be kept in sync with the kernel's evtchn driver. */
    2.13  #define EVTCHN_DEV_NAME  "/dev/xen/evtchn"
    2.14  #define EVTCHN_DEV_MAJOR 10