chiark / gitweb /
Initial push
[termux-packages] / ndk_patches / grp.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/grp.h ./usr/include/grp.h
2 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/grp.h      2014-10-14 22:53:49.000000000 -0400
3 +++ ./usr/include/grp.h 2014-12-14 15:33:15.715243224 -0500
4 @@ -54,13 +54,13 @@
5  struct group   *getgrgid(gid_t);
6  struct group   *getgrnam(const char *);
7  #if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE
8 -struct group   *getgrent(void);
9 -void            setgrent(void);
10 -void            endgrent(void);
11 -int             getgrgid_r(gid_t, struct group *, char *,
12 -                   size_t, struct group **);
13 -int             getgrnam_r(const char *, struct group *, char *,
14 -                   size_t, struct group **);
15 +static struct group    *getgrent(void) { return 0; }
16 +static void             setgrent(void) {}
17 +static void             endgrent(void) {}
18 +static int              getgrgid_r(gid_t gid, struct group * grp, char * buf,
19 +                   size_t buflen, struct group ** result) { *result = 0; return 0; }
20 +static int              getgrnam_r(const char * name, struct group * grp, char * buf,
21 +                   size_t buflen, struct group ** result) { *result = 0; return 0; }
22  #endif
23  
24  int   getgrouplist (const char *user, gid_t group,