Browse Source

libandroid-glob: Fix building with clang

android-5
Fredrik Fornwall 9 years ago
parent
commit
899b567d0a
  1. 2
      packages/libandroid-glob/build.sh
  2. 5
      packages/libandroid-glob/glob.h

2
packages/libandroid-glob/build.sh

@ -1,6 +1,6 @@
TERMUX_PKG_HOMEPAGE=http://man7.org/linux/man-pages/man3/glob.3.html TERMUX_PKG_HOMEPAGE=http://man7.org/linux/man-pages/man3/glob.3.html
TERMUX_PKG_DESCRIPTION="Shared library for the glob(3) system function" TERMUX_PKG_DESCRIPTION="Shared library for the glob(3) system function"
TERMUX_PKG_VERSION=0.2 TERMUX_PKG_VERSION=0.3
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make_install () { termux_step_make_install () {

5
packages/libandroid-glob/glob.h

@ -39,11 +39,6 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef _SIZE_T_DECLARED
typedef __size_t size_t;
#define _SIZE_T_DECLARED
#endif
struct stat; struct stat;
typedef struct { typedef struct {
size_t gl_pathc; /* Count of total paths so far. */ size_t gl_pathc; /* Count of total paths so far. */

Loading…
Cancel
Save