Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: ports/libtar/nacl.patch

Issue 162913002: Use _NEWLIB_VERSION macro to detect newlib. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ports/leveldb/nacl.patch ('k') | ports/netcat/nacl.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff --git a/configure b/configure 1 diff --git a/configure b/configure
2 index 466a189..3b1fe44 100755 2 index 466a189..3b1fe44 100755
3 --- a/configure 3 --- a/configure
4 +++ b/configure 4 +++ b/configure
5 @@ -2602,8 +2602,8 @@ cat >>confdefs.h <<\_ACEOF 5 @@ -2602,8 +2602,8 @@ cat >>confdefs.h <<\_ACEOF
6 #define HAVE_STRLCPY 1 6 #define HAVE_STRLCPY 1
7 _ACEOF 7 _ACEOF
8 8
9 -else 9 -else
10 - LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 10 - LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 66
67 diff --git a/lib/extract.c b/lib/extract.c 67 diff --git a/lib/extract.c b/lib/extract.c
68 index 6bbb801..1646191 100644 68 index 6bbb801..1646191 100644
69 --- a/lib/extract.c 69 --- a/lib/extract.c
70 +++ b/lib/extract.c 70 +++ b/lib/extract.c
71 @@ -28,6 +28,22 @@ 71 @@ -28,6 +28,22 @@
72 #endif 72 #endif
73 73
74 74
75 +#if defined(__native_client__) && !defined(__GLIBC__) 75 +#if defined(__native_client__) && defined(_NEWLIB_VERSION)
76 +struct group *getgrgid(gid_t gid) { 76 +struct group *getgrgid(gid_t gid) {
77 + errno = ENOSYS; 77 + errno = ENOSYS;
78 + return NULL; 78 + return NULL;
79 +} 79 +}
80 + 80 +
81 +int major(dev_t dev) { 81 +int major(dev_t dev) {
82 + return 0; 82 + return 0;
83 +} 83 +}
84 + 84 +
85 +int minor(dev_t dev) { 85 +int minor(dev_t dev) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 +++ b/libtar/Makefile.in 144 +++ b/libtar/Makefile.in
145 @@ -16,7 +16,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ 145 @@ -16,7 +16,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
146 146
147 ### Installation programs and flags 147 ### Installation programs and flags
148 INSTALL = @INSTALL@ 148 INSTALL = @INSTALL@
149 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s 149 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
150 +INSTALL_PROGRAM = @INSTALL_PROGRAM@ 150 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
151 INSTALL_DATA = @INSTALL_DATA@ 151 INSTALL_DATA = @INSTALL_DATA@
152 LN_S = @LN_S@ 152 LN_S = @LN_S@
153 MKDIR = @MKDIR@ 153 MKDIR = @MKDIR@
OLDNEW
« no previous file with comments | « ports/leveldb/nacl.patch ('k') | ports/netcat/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698