diff --git a/appl/xnlock/Makefile.in b/appl/xnlock/Makefile.in index 56c036bc0..2a2c5939d 100644 --- a/appl/xnlock/Makefile.in +++ b/appl/xnlock/Makefile.in @@ -8,7 +8,7 @@ XLIBS = @X_LIBS@ -lXt @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ CC = @CC@ RANLIB = @RANLIB@ -DEFS = @DEFS@ +DEFS = @DEFS@ -DBINDIR='"$(bindir)"' CFLAGS = $(XINCS) @CFLAGS@ LD_FLAGS = @LD_FLAGS@ LIBS = $(XLIBS) @LIBS@ diff --git a/appl/xnlock/xnlock.c b/appl/xnlock/xnlock.c index 389c4c0a1..f371f7853 100644 --- a/appl/xnlock/xnlock.c +++ b/appl/xnlock/xnlock.c @@ -250,7 +250,7 @@ zrefresh() case 0: /* Child */ execlp("zrefresh", "zrefresh", 0); - execl("/usr/athena/bin/zrefresh", "zrefresh", 0); + execl(BINDIR "/zrefresh", "zrefresh", 0); #if 0 fprintf(stderr, "Warning %s: Failed to exec zrefresh\n", ProgName); #endif