diff -ur cfitsio/cfitsio.pc.in cfitsio.new/cfitsio.pc.in
--- cfitsio/cfitsio.pc.in	2013-04-08 20:11:56.000000000 +0200
+++ cfitsio.new/cfitsio.pc.in	2013-07-10 18:42:11.105358864 +0200
@@ -1,11 +1,11 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
-includedir=@includedir@
+includedir=@includedir@/cfitsio
 
 Name: cfitsio
 Description: FITS File Subroutine Library
 Version: @CFITSIO_MAJOR@.@CFITSIO_MINOR@
-Libs: -L${libdir} -lcfitsio @LIBS@
-Libs.private: -lm
-Cflags: -I${includedir}
+Libs: -L${libdir} -lcfitsio
+Libs.private: -lm -lz @LIBS@
+Cflags: -D_REENTRANT -I${includedir}
