diff mbox series

[OpenWrt-Devel] fstoools: add define for GLOB_ONLYDIR

Message ID 20200325232747.8675-1-rosenp@gmail.com
State New
Headers show
Series [OpenWrt-Devel] fstoools: add define for GLOB_ONLYDIR | expand

Commit Message

Rosen Penev March 25, 2020, 11:27 p.m. UTC
This was originally a patch for musl. It is not present in musl as it is a
GNU extension.

Place it here where it belongs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 libfstools/overlay.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Rosen Penev March 25, 2020, 11:29 p.m. UTC | #1
On Wed, Mar 25, 2020 at 4:27 PM Rosen Penev <rosenp@gmail.com> wrote:
>
> This was originally a patch for musl. It is not present in musl as it is a
> GNU extension.
>
> Place it here where it belongs.
>
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
Funny. openembedded has the same patch:
https://github.com/kraj/meta-openwrt/blob/master/recipes-core/fstools/files/0001-Define-GLOB_ONLYDIR-if-not-available.patch
> ---
>  libfstools/overlay.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/libfstools/overlay.c b/libfstools/overlay.c
> index 14214a3..39215d5 100644
> --- a/libfstools/overlay.c
> +++ b/libfstools/overlay.c
> @@ -30,6 +30,10 @@
>  #include "libfstools.h"
>  #include "volume.h"
>
> +#ifndef GLOB_ONLYDIR
> +#define GLOB_ONLYDIR 0x100
> +#endif
> +
>  #define SWITCH_JFFS2 "/tmp/.switch_jffs2"
>
>  static bool keep_sysupgrade;
> --
> 2.25.1
>
diff mbox series

Patch

diff --git a/libfstools/overlay.c b/libfstools/overlay.c
index 14214a3..39215d5 100644
--- a/libfstools/overlay.c
+++ b/libfstools/overlay.c
@@ -30,6 +30,10 @@ 
 #include "libfstools.h"
 #include "volume.h"
 
+#ifndef GLOB_ONLYDIR
+#define GLOB_ONLYDIR 0x100
+#endif
+
 #define SWITCH_JFFS2 "/tmp/.switch_jffs2"
 
 static bool keep_sysupgrade;