--- xfsprogs-3.1.1.orig/repair/Makefile	2010-01-29 20:46:13.000000000 +0100
+++ xfsprogs-3.1.1/repair/Makefile	2010-02-14 00:07:38.000000000 +0100
@@ -20,7 +20,7 @@ CFILES = agheader.c attr_repair.c avl.c
	progress.c prefetch.c rt.c sb.c scan.c threads.c \
	versions.c xfs_repair.c

-LLDLIBS = $(LIBXFS) $(LIBXLOG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD)
+LLDLIBS = $(LIBXFS) $(LIBXLOG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD) -lrt
 LTDEPENDENCIES = $(LIBXFS) $(LIBXLOG)
 LLDFLAGS = -static
