--- ./ext/rpm/private.h 2006-10-13 23:46:53.000000000 +0200 +++ /export/home/pterjan/BUILD/ruby-rpm-1.2.1/ext/rpm/private.h 2007-01-06 23:57:04.000000000 +0100 @@ -17,9 +17,15 @@ #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> +/* Looks missing in rpmds.h */ +#include <sys/utsname.h> #include <unistd.h> #include <st.h> +/* To get structure definitions */ +#define _RPMDB_INTERNAL +#define _RPMPS_INTERNAL + #include <rpmcli.h> #include <rpmlib.h> #include <rpmdb.h>