Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/mdadm
Date: Mon, 16 Apr 2007 12:14:34 -0700 (PDT)	[thread overview]
Message-ID: <20070416191434.9F5B4485C2@busybox.net> (raw)

Author: aldot
Date: 2007-04-16 12:14:34 -0700 (Mon, 16 Apr 2007)
New Revision: 18459

Log:
- uclibc is nowadays identified via __UCLIBC__
- fix build error when no ftw() is available.


Added:
   trunk/buildroot/package/mdadm/mdadm-2.6.1-001.uclibc-and-ftw-fixup.patch


Changeset:
Added: trunk/buildroot/package/mdadm/mdadm-2.6.1-001.uclibc-and-ftw-fixup.patch
===================================================================
--- trunk/buildroot/package/mdadm/mdadm-2.6.1-001.uclibc-and-ftw-fixup.patch	                        (rev 0)
+++ trunk/buildroot/package/mdadm/mdadm-2.6.1-001.uclibc-and-ftw-fixup.patch	2007-04-16 19:14:34 UTC (rev 18459)
@@ -0,0 +1,24 @@
+diff -rdup mdadm-2.6.1.orig/mdadm.h mdadm-2.6.1/mdadm.h
+--- mdadm-2.6.1.orig/mdadm.h	2007-02-22 04:59:28.000000000 +0100
++++ mdadm-2.6.1/mdadm.h	2007-04-16 20:53:53.000000000 +0200
+@@ -382,7 +382,7 @@ struct stat64;
+ #define HAVE_NFTW  we assume
+ #define HAVE_FTW
+ 
+-#ifdef UCLIBC
++#if defined __UCLIBC__ || /* older did use that? */ defined UCLIBC
+ # include <features.h>
+ # ifndef  __UCLIBC_HAS_FTW__
+ #  undef HAVE_FTW
+diff -rdup mdadm-2.6.1.orig/util.c mdadm-2.6.1/util.c
+--- mdadm-2.6.1.orig/util.c	2006-12-19 03:35:27.000000000 +0100
++++ mdadm-2.6.1/util.c	2007-04-16 21:05:56.000000000 +0200
+@@ -468,7 +468,7 @@ int nftw(const char *path, int (*han)(co
+ 	return ftw(path, add_dev_1, nopenfd);
+ }
+ #else
+-int add_dev(const char *name, const struct stat *stb, int flag, struct FTW *s)
++int add_dev_1(const char *name, const struct stat *stb, int flag, struct FTW *s)
+ {
+ 	return 0;
+ }

             reply	other threads:[~2007-04-16 19:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-16 19:14 aldot at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-11  6:43 [Buildroot] svn commit: trunk/buildroot/package/mdadm ulf at uclibc.org
2008-03-24 19:19 nkukard at uclibc.org
2007-10-30 21:32 ulf at uclibc.org
2007-06-26 16:35 aldot at uclibc.org
2007-05-18  9:55 aldot at uclibc.org
2007-05-15 11:25 aldot at uclibc.org
2007-04-18 19:55 aldot at uclibc.org
2007-04-17 15:48 aldot at uclibc.org
2007-04-16 19:08 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070416191434.9F5B4485C2@busybox.net \
    --to=aldot@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox