@@ -24,7 +24,8 @@
dnl If python-config is found use it
CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`"
LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags`"
- LIBS="$LIBS `$PYTHON-config --libs`"
+ LIBSTMP="`$PYTHON-config --libs --embed`" || LIBSTMP="`$PYTHON-config --libs`"
+ LIBS="$LIBS $LIBSTMP"
])
AC_CHECK_HEADER([Python.h], [],
@@ -7482,7 +7482,8 @@
CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`"
LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags`"
- LIBS="$LIBS `$PYTHON-config --libs`"
+ LIBSTMP="`$PYTHON-config --libs --embed`" || LIBSTMP="`$PYTHON-config --libs`"
+ LIBS="$LIBS $LIBSTMP"
fi
@@ -118,7 +118,8 @@
PyObject *kwds)
{
uint32_t dom = 0, target = 0;
- int ret, i;
+ int ret;
+ unsigned int i;
PyObject *pyhandle = NULL;
struct xen_domctl_createdomain config = {
.handle = {
@@ -296,7 +297,7 @@
static PyObject *pyxc_domain_sethandle(XcObject *self, PyObject *args)
{
- int i;
+ unsigned int i;
uint32_t dom;
PyObject *pyhandle;
xen_domain_handle_t handle;
@@ -337,7 +338,8 @@
PyObject *list, *info_dict, *pyhandle;
uint32_t first_dom = 0;
- int max_doms = 1024, nr_doms, i, j;
+ int max_doms = 1024, nr_doms, i;
+ unsigned int j;
xc_dominfo_t *info;
static char *kwd_list[] = { "first_dom", "max_doms", NULL };
@@ -632,7 +634,8 @@
{
uint32_t sbdf;
uint32_t max_sdevs, num_sdevs;
- int domid, seg, bus, dev, func, rc, i;
+ int domid, seg, bus, dev, func, rc;
+ unsigned int i;
PyObject *Pystr;
char *group_str;
char dev_str[9];
@@ -972,7 +975,7 @@
{
xc_physinfo_t pinfo;
char cpu_cap[128], virt_caps[128], *p;
- int i;
+ unsigned int i;
const char *virtcap_names[] = { "hvm", "hvm_directio" };
if ( xc_physinfo(self->xc_handle, &pinfo) != 0 )
@@ -186,7 +186,7 @@
Py_END_ALLOW_THREADS
if (xsval) {
- int i;
+ unsigned int i;
PyObject *val = PyList_New(xsval_n);
for (i = 0; i < xsval_n; i++)
#if PY_MAJOR_VERSION >= 3
@@ -276,7 +276,7 @@
struct xs_handle *xh = xshandle(self);
struct xs_permissions *perms;
unsigned int perms_n = 0;
- int i;
+ unsigned int i;
xs_transaction_t th;
char *thstr;