Alejandro Mery
17 years ago
3 changed files with 10 additions and 69 deletions
@ -1,59 +0,0 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../busybox/dietlibc.patch
|
||||
# Copyright (C) 2007 - 2008 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
--- ./shell/ash.c.orig 2007-07-17 11:01:59.000000000 -0400
|
||||
+++ ./shell/ash.c 2007-07-17 11:02:57.000000000 -0400
|
||||
@@ -66,6 +66,9 @@
|
||||
#error "Do not even bother, ash will not run on uClinux"
|
||||
#endif
|
||||
|
||||
+#ifdef __dietlibc__
|
||||
+#define dprintf fdprintf
|
||||
+#endif
|
||||
|
||||
/* ============ Misc helpers */
|
||||
|
||||
--- ./libbb/pw_encrypt.c.orig 2007-07-21 19:35:23.000000000 -0400
|
||||
+++ ./libbb/pw_encrypt.c 2007-07-21 19:35:36.000000000 -0400
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
-#include <crypt.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
char *pw_encrypt(const char *clear, const char *salt)
|
||||
{
|
||||
--- ./util-linux/umount.c.orig 2008-02-14 14:44:01.000000000 +0000
|
||||
+++ ./util-linux/umount.c 2008-02-14 14:44:29.000000000 +0000
|
||||
@@ -21,6 +21,17 @@
|
||||
#define OPT_REMOUNT (1 << 4)
|
||||
#define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? (1 << 5) : 0)
|
||||
|
||||
+#if defined(__dietlibc__)
|
||||
+/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
|
||||
+ * dietlibc-0.30 does not have implementation of getmntent_r() */
|
||||
+static struct mntent *getmntent_r(FILE* stream, struct mntent* result, char* buffer, int bufsize)
|
||||
+{
|
||||
+ struct mntent* ment = getmntent(stream);
|
||||
+ memcpy(result, ment, sizeof(struct mntent));
|
||||
+ return result;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
int umount_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
int umount_main(int argc, char **argv)
|
||||
{
|
Loading…
Reference in new issue