ia64/xen-unstable

changeset 11396:fd6c2b5e041f

[TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Aug 31 18:54:50 2006 +0100 (2006-08-31)
parents 6f41473da163
children 96a4379be74a
files tools/debugger/gdb/gdbbuild tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/debugger/gdb/gdbbuild	Thu Aug 31 18:23:28 2006 +0100
     1.2 +++ b/tools/debugger/gdb/gdbbuild	Thu Aug 31 18:54:50 2006 +0100
     1.3 @@ -18,7 +18,7 @@ cd gdb-6.2.1-linux-i386-xen
     1.4  if [ "$MAKE" ]; then
     1.5      $MAKE
     1.6  elif which gmake ; then
     1.7 -    gmake -j4 CFLAGS=-D__XEN_TOOLS__
     1.8 +    gmake -j4
     1.9  else
    1.10 -    make -j4 CFLAGS=-D__XEN_TOOLS__
    1.11 +    make -j4
    1.12  fi
     2.1 --- a/tools/libxc/xenctrl.h	Thu Aug 31 18:23:28 2006 +0100
     2.2 +++ b/tools/libxc/xenctrl.h	Thu Aug 31 18:54:50 2006 +0100
     2.3 @@ -9,6 +9,11 @@
     2.4  #ifndef XENCTRL_H
     2.5  #define XENCTRL_H
     2.6  
     2.7 +/* Tell the Xen public headers we are a user-space tools build. */
     2.8 +#ifndef __XEN_TOOLS__
     2.9 +#define __XEN_TOOLS__ 1
    2.10 +#endif
    2.11 +
    2.12  #include <stddef.h>
    2.13  #include <stdint.h>
    2.14  #include <sys/ptrace.h>