diff options
Diffstat (limited to 'testing/fts/fts-uclibc.patch')
-rw-r--r-- | testing/fts/fts-uclibc.patch | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/testing/fts/fts-uclibc.patch b/testing/fts/fts-uclibc.patch index 18b48efb9..359353039 100644 --- a/testing/fts/fts-uclibc.patch +++ b/testing/fts/fts-uclibc.patch @@ -1,15 +1,17 @@ --- fts.orig/fts.c +++ fts/fts.c -@@ -31,6 +31,8 @@ +@@ -31,6 +31,10 @@ * SUCH DAMAGE. */ -+#define ALIGNBYTES (alignof(long double) - 1) -+#define alignof(TYPE) ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) ++#define alignof(TYPE) ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) ++#define ALIGNBYTES (alignof(long double) - 1) ++#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES) ++ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; #endif /* LIBC_SCCS and not lint */ -@@ -652,10 +654,10 @@ +@@ -652,10 +656,10 @@ if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name)) continue; @@ -23,7 +25,7 @@ /* * No more memory for path or structures. Save * errno, free up the current structure and the -@@ -675,7 +677,7 @@ +@@ -675,7 +679,7 @@ maxlen = sp->fts_pathlen - sp->fts_cur->fts_pathlen - 1; } @@ -32,7 +34,7 @@ p->fts_parent = sp->fts_cur; p->fts_level = level; -@@ -784,7 +786,7 @@ +@@ -784,7 +788,7 @@ /* If user needs stat info, stat buffer already allocated. */ sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; |