Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.

diff --git a/dlls/winedos/devices.c b/dlls/winedos/devices.c
index ae87383..e6e4200 100644
--- a/dlls/winedos/devices.c
+++ b/dlls/winedos/devices.c
@@ -2,6 +2,20 @@
  * DOS devices
  *
  * Copyright 1999 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
@@ -10,7 +24,7 @@
 #include "msdos.h"
 #include "miscemu.h"
 #include "dosexe.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
 #include "pshpack1.h"
 
diff --git a/dlls/winedos/dosaspi.c b/dlls/winedos/dosaspi.c
index 0a11d9a..20a4839 100644
--- a/dlls/winedos/dosaspi.c
+++ b/dlls/winedos/dosaspi.c
@@ -1,14 +1,32 @@
+/*
+ * Copyright 2000 David Elliott
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
 #include "config.h"
 
 #include <string.h>
 #include "winbase.h"
 #include "wine/windef16.h"
 #include "wine/winaspi.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "miscemu.h" /* DOSMEM_* */
 #include "winerror.h"
 
-DEFAULT_DEBUG_CHANNEL(aspi);
+WINE_DEFAULT_DEBUG_CHANNEL(aspi);
 
 static HINSTANCE hWNASPI32 = INVALID_HANDLE_VALUE;
 static DWORD (__cdecl *pSendASPI32Command) (LPSRB) = NULL;
diff --git a/dlls/winedos/dosexe.h b/dlls/winedos/dosexe.h
index 1853534..0ed77c2 100644
--- a/dlls/winedos/dosexe.h
+++ b/dlls/winedos/dosexe.h
@@ -2,6 +2,20 @@
  * DOS EXE loader
  *
  * Copyright 1998 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #ifndef __WINE_DOSEXE_H
diff --git a/dlls/winedos/dosvm.c b/dlls/winedos/dosvm.c
index b4636e6..8c3ee62 100644
--- a/dlls/winedos/dosvm.c
+++ b/dlls/winedos/dosvm.c
@@ -3,7 +3,21 @@
  *
  * Copyright 1998 Ove Kåven
  *
- * This code hasn't been completely cleaned up yet.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Note: This code hasn't been completely cleaned up yet.
  */
 
 #include "config.h"
@@ -33,12 +47,12 @@
 #include "dosexe.h"
 #include "dosvm.h"
 #include "stackframe.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "msvcrt/excpt.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
-DECLARE_DEBUG_CHANNEL(module);
-DECLARE_DEBUG_CHANNEL(relay);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
+WINE_DECLARE_DEBUG_CHANNEL(module);
+WINE_DECLARE_DEBUG_CHANNEL(relay);
 
 WORD DOSVM_psp = 0;
 WORD DOSVM_retval = 0;
diff --git a/dlls/winedos/dosvm.h b/dlls/winedos/dosvm.h
index 10c64fe..524670c 100644
--- a/dlls/winedos/dosvm.h
+++ b/dlls/winedos/dosvm.h
@@ -2,6 +2,20 @@
  * DOS virtual machine
  *
  * Copyright 2000 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #ifndef __WINE_DOSVM_H
diff --git a/dlls/winedos/int09.c b/dlls/winedos/int09.c
index 96f65e4..8f5e8ac 100644
--- a/dlls/winedos/int09.c
+++ b/dlls/winedos/int09.c
@@ -1,5 +1,21 @@
 /*
  * DOS interrupt 09h handler (IRQ1 - KEYBOARD)
+ *
+ * Copyright 1999 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
@@ -10,10 +26,10 @@
 #include "wingdi.h"
 #include "winuser.h"
 #include "miscemu.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "dosexe.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 #define QUEUELEN 31
 
diff --git a/dlls/winedos/int10.c b/dlls/winedos/int10.c
index 390b6d9..a733811 100644
--- a/dlls/winedos/int10.c
+++ b/dlls/winedos/int10.c
@@ -1,5 +1,22 @@
 /*
  * BIOS interrupt 10h handler
+ *
+ * Copyright 1998 Ove Kåven
+ * Copyright 1998 Joseph Pranevich
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -8,10 +25,10 @@
 
 #include "miscemu.h"
 #include "vga.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "console.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 static void conv_text_mode_attributes(char attribute, int *fg, int *bg,
        int *wattribute);
diff --git a/dlls/winedos/int16.c b/dlls/winedos/int16.c
index c25e1e1..f4538bf 100644
--- a/dlls/winedos/int16.c
+++ b/dlls/winedos/int16.c
@@ -1,5 +1,22 @@
 /*
  * DOS interrupt 16h handler
+ *
+ * Copyright 1998 Joseph Pranevich
+ * Copyright 1999 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -11,13 +28,13 @@
 #include "module.h"
 #include "dosexe.h"
 #include "wincon.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "windef.h"
 #include "wingdi.h"
 #include "winuser.h"
 #include "miscemu.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 /**********************************************************************
  *	    DOSVM_Int16Handler
diff --git a/dlls/winedos/int17.c b/dlls/winedos/int17.c
index 5324e53..5805fd6 100644
--- a/dlls/winedos/int17.c
+++ b/dlls/winedos/int17.c
@@ -1,15 +1,31 @@
 /*
  * BIOS interrupt 17h handler
+ *
+ * Copyright 1998 Carl van Schaik
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
 
 #include "miscemu.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "msdos.h"
 #include "winnt.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 /**********************************************************************
  *          DOSVM_Int17Handler
diff --git a/dlls/winedos/int19.c b/dlls/winedos/int19.c
index d92daab..3262f6c 100644
--- a/dlls/winedos/int19.c
+++ b/dlls/winedos/int19.c
@@ -1,12 +1,28 @@
 /*
  * BIOS interrupt 19h handler
+ *
+ * Copyright 1998 Carl van Schaik
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
 #include "miscemu.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 
 /**********************************************************************
diff --git a/dlls/winedos/int20.c b/dlls/winedos/int20.c
index bb6cef3..349529c 100644
--- a/dlls/winedos/int20.c
+++ b/dlls/winedos/int20.c
@@ -1,5 +1,21 @@
 /*
  * DOS interrupt 20h handler (TERMINATE PROGRAM)
+ *
+ * Copyright 1997 Andreas Mohr
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c
index b044af3..fa9155b 100644
--- a/dlls/winedos/int21.c
+++ b/dlls/winedos/int21.c
@@ -1,5 +1,25 @@
 /*
  * DOS interrupt 21h handler
+ *
+ * Copyright 1993, 1994 Erik Bos
+ * Copyright 1996 Alexandre Julliard
+ * Copyright 1997 Andreas Mohr
+ * Copyright 1998 Uwe Bonnes
+ * Copyright 1998, 1999 Ove Kaaven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -13,9 +33,9 @@
 #include "msdos.h"
 #include "console.h"
 #include "file.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int21);
+WINE_DEFAULT_DEBUG_CHANNEL(int21);
 
 void WINAPI DOSVM_Int21Handler_Ioctl( CONTEXT86 *context )
 {
diff --git a/dlls/winedos/int29.c b/dlls/winedos/int29.c
index 65d20a2..522e4cf 100644
--- a/dlls/winedos/int29.c
+++ b/dlls/winedos/int29.c
@@ -1,5 +1,21 @@
 /*
  * DOS interrupt 29h handler
+ *
+ * Copyright 1998 Joseph Pranevich
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
diff --git a/dlls/winedos/int31.c b/dlls/winedos/int31.c
index da677a9..c4e1d49 100644
--- a/dlls/winedos/int31.c
+++ b/dlls/winedos/int31.c
@@ -2,6 +2,20 @@
  * DPMI 0.9 emulation
  *
  * Copyright 1995 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -13,9 +27,9 @@
 #include "msdos.h"
 #include "dosexe.h"
 
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int31);
+WINE_DEFAULT_DEBUG_CHANNEL(int31);
 
 /* Structure for real-mode callbacks */
 typedef struct
diff --git a/dlls/winedos/int33.c b/dlls/winedos/int33.c
index 00bd945..3c95052 100644
--- a/dlls/winedos/int33.c
+++ b/dlls/winedos/int33.c
@@ -1,5 +1,21 @@
 /*
  * DOS interrupt 33h handler
+ *
+ * Copyright 1999 Ove Kåven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
@@ -12,9 +28,9 @@
 #include "miscemu.h"
 #include "dosexe.h"
 #include "vga.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 static struct
 {
diff --git a/dlls/winedos/int67.c b/dlls/winedos/int67.c
index 11abe9d..0f80d61 100644
--- a/dlls/winedos/int67.c
+++ b/dlls/winedos/int67.c
@@ -1,14 +1,30 @@
 /*
  * Int67 (EMS) emulation
+ *
+ * Copyright 2002 Jukka Heinonen
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <assert.h>
 #include "wine/winbase16.h"
 #include "dosexe.h"
 #include "miscemu.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int);
+WINE_DEFAULT_DEBUG_CHANNEL(int);
 
 /*
  * EMS page size == 16 kilobytes.
diff --git a/dlls/winedos/ioports.c b/dlls/winedos/ioports.c
index b63e1ad..e8e4bc1 100644
--- a/dlls/winedos/ioports.c
+++ b/dlls/winedos/ioports.c
@@ -3,6 +3,20 @@
  *
  * Copyright 1995 Morten Welinder
  * Copyright 1998 Andreas Mohr, Ove Kaaven
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
diff --git a/dlls/winedos/module.c b/dlls/winedos/module.c
index f0b4d9b..7c004de 100644
--- a/dlls/winedos/module.c
+++ b/dlls/winedos/module.c
@@ -3,7 +3,21 @@
  *
  * Copyright 1998 Ove Kåven
  *
- * This code hasn't been completely cleaned up yet.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Note: This code hasn't been completely cleaned up yet.
  */
 
 #include "config.h"
@@ -27,13 +41,13 @@
 #include "task.h"
 #include "file.h"
 #include "miscemu.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "dosexe.h"
 #include "dosvm.h"
 #include "options.h"
 #include "vga.h"
 
-DEFAULT_DEBUG_CHANNEL(module);
+WINE_DEFAULT_DEBUG_CHANNEL(module);
 
 #ifdef MZ_SUPPORTED
 
diff --git a/dlls/winedos/vga.c b/dlls/winedos/vga.c
index dcadac7..61d5ef4 100644
--- a/dlls/winedos/vga.c
+++ b/dlls/winedos/vga.c
@@ -3,6 +3,19 @@
  * 
  * Copyright 1998 Ove Kåven (with some help from Marcus Meissner)
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <string.h>
@@ -15,9 +28,9 @@
 #include "vga.h"
 #include "ddraw.h"
 #include "services.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(ddraw);
+WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
 
 static IDirectDraw *lpddraw = NULL;
 static IDirectDrawSurface *lpddsurf;
diff --git a/dlls/winedos/vga.h b/dlls/winedos/vga.h
index 57800d2..3da55ac 100644
--- a/dlls/winedos/vga.h
+++ b/dlls/winedos/vga.h
@@ -3,6 +3,19 @@
  * 
  * Copyright 1998 Ove KÅven
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #ifndef __WINE_VGA_H
diff --git a/dlls/winedos/xms.c b/dlls/winedos/xms.c
index eaf727c..36876dc 100644
--- a/dlls/winedos/xms.c
+++ b/dlls/winedos/xms.c
@@ -3,7 +3,21 @@
  *
  * Copyright 1998 Ove Kåven
  *
- * This XMS emulation is hooked through the DPMI interrupt.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Note: This XMS emulation is hooked through the DPMI interrupt.
  */
 
 #include <unistd.h>
@@ -13,9 +27,9 @@
 #include "module.h"
 #include "miscemu.h"
 #include "toolhelp.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(int31);
+WINE_DEFAULT_DEBUG_CHANNEL(int31);
 
 typedef struct {
  WORD Handle;