summaryrefslogtreecommitdiff
path: root/lib/misc.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-23 13:15:59 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-23 13:15:59 +0200
commita39dc445fc0ccf03e22189699e4d6256658536f0 (patch)
tree55deaa806ff86612797ef527dba324659f3e07a9 /lib/misc.c
parent0fbf88d34c6d2ba03ebf011d05ada5244636ca02 (diff)
downloadlibrpm-tizen-a39dc445fc0ccf03e22189699e4d6256658536f0.tar.gz
librpm-tizen-a39dc445fc0ccf03e22189699e4d6256658536f0.tar.bz2
librpm-tizen-a39dc445fc0ccf03e22189699e4d6256658536f0.zip
Dont include grp.h from system.h, dont bother checking in configure either
- no much point conditionalizing something we can't live without - just two places need, no point polluting include space everywhere
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 3d7fc1463..55ad6faaa 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -4,16 +4,16 @@
#include "system.h"
-/* just to put a marker in librpm.a */
-const char * const RPMVERSION = VERSION;
-
+#include <grp.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmstring.h>
#include "lib/misc.h"
-
#include "debug.h"
+/* just to put a marker in librpm.a */
+const char * const RPMVERSION = VERSION;
+
/* unameToUid(), uidTouname() and the group variants are really poorly
implemented. They really ought to use hash tables. I just made the
guess that most files would be owned by root or the same person/group