- (bal) Makefile fix where sourcedir != builddir by Corinna Vinschen
   <vinschen@redhat.com>
diff --git a/ChangeLog b/ChangeLog
index 8edb20d..a4ea90a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20010102
+ - (bal) Makefile fix where sourcedir != builddir by Corinna Vinschen 
+   <vinschen@redhat.com>
+
 20010101
  - (bal) Minor fix to Makefile to stop rebuilding executables if no
    changes have occured to any of the supporting code.  Patch by
diff --git a/Makefile.in b/Makefile.in
index 91eb81e..7880ab5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,7 +19,7 @@
 LD=@LD@
 PATHS=-DETCDIR=\"$(sysconfdir)\" -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
 CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@ -I. -Iopenbsd-compat/ -I$(srcdir) $(PATHS) @DEFS@
+CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/openbsd-compat -I$(srcdir) $(PATHS) @DEFS@
 LIBS=@LIBS@
 AR=@AR@
 RANLIB=@RANLIB@
diff --git a/openbsd-compat/Makefile.in b/openbsd-compat/Makefile.in
index 1c745fb..f873968 100644
--- a/openbsd-compat/Makefile.in
+++ b/openbsd-compat/Makefile.in
@@ -3,10 +3,11 @@
 srcdir=@srcdir@
 top_srcdir=@top_srcdir@
 
+VPATH=@srcdir@
 CC=@CC@
 LD=@LD@
 CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@ -I. -I.. -I$(srcdir) @DEFS@
+CPPFLAGS=@CPPFLAGS@ -I. -I.. -I$(srcdir) -I$(srcdir)/.. @DEFS@
 LIBS=@LIBS@
 AR=@AR@
 RANLIB=@RANLIB@