Andrew Geissler | 78b7279 | 2022-06-14 06:47:25 -0500 | [diff] [blame] | 1 | From 81b4fbb5f52044cb348534c23f10b3884972b09b Mon Sep 17 00:00:00 2001 |
| 2 | From: Beat Schaer <beat.schaer@wabtec.com> |
| 3 | Date: Fri, 19 Mar 2021 08:18:58 +0100 |
| 4 | Subject: [PATCH] Fixed includes so that it compiles on Ubuntu 20.04 |
| 5 | |
| 6 | --- |
| 7 | logic.c | 3 +-- |
| 8 | main.c | 3 ++- |
| 9 | 2 files changed, 3 insertions(+), 3 deletions(-) |
| 10 | |
| 11 | diff --git a/logic.c b/logic.c |
| 12 | index 97767f5..47ebfaa 100644 |
| 13 | --- a/logic.c |
| 14 | +++ b/logic.c |
| 15 | @@ -7,8 +7,7 @@ |
| 16 | #include <string.h> |
| 17 | #include <errno.h> |
| 18 | #include <unistd.h> |
| 19 | -#include <attr/xattr.h> |
| 20 | -#include <attr/attributes.h> |
| 21 | +#include <sys/xattr.h> |
| 22 | #include <fts.h> |
| 23 | #include <libgen.h> |
| 24 | #include "logic.h" |
| 25 | diff --git a/main.c b/main.c |
| 26 | index aa11239..f462b98 100644 |
| 27 | --- a/main.c |
| 28 | +++ b/main.c |
| 29 | @@ -12,7 +12,8 @@ |
| 30 | #include <linux/limits.h> |
| 31 | #include <stdbool.h> |
| 32 | #include <sys/stat.h> |
| 33 | -#include <attr/xattr.h> |
| 34 | +#include <sys/xattr.h> |
| 35 | +#include <errno.h> |
| 36 | #ifndef _SYS_STAT_H |
| 37 | #include <linux/stat.h> |
| 38 | #endif |
| 39 | -- |
| 40 | 2.25.1 |
| 41 | |