37 lines
773 B
Diff
37 lines
773 B
Diff
From 541e2a403d45157617b0726e6a18f37959fe146b Mon Sep 17 00:00:00 2001
|
|
From: Robbie Harwood <rharwood@redhat.com>
|
|
Date: Mon, 21 Nov 2022 10:20:55 +0200
|
|
Subject: [PATCH] rpm-sort: fix missing include and sort
|
|
|
|
---
|
|
rpm-sort.c | 11 ++++++-----
|
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/rpm-sort.c b/rpm-sort.c
|
|
index f196356..274bcb1 100644
|
|
--- a/rpm-sort.c
|
|
+++ b/rpm-sort.c
|
|
@@ -1,13 +1,14 @@
|
|
#define _GNU_SOURCE
|
|
|
|
+#include <argp.h>
|
|
+#include <assert.h>
|
|
+#include <err.h>
|
|
+#include <errno.h>
|
|
+#include <rpm/rpmlib.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <unistd.h>
|
|
-#include <errno.h>
|
|
-#include <assert.h>
|
|
-#include <argp.h>
|
|
-#include <rpm/rpmlib.h>
|
|
-#include <err.h>
|
|
|
|
typedef enum {
|
|
RPMNVRCMP,
|
|
--
|
|
2.37.3
|
|
|