On Sun, Jan 3, 2021 at 9:10 AM Alex Samorukov <s...@os2.kiev.ua> wrote:
> Hi,
>
> I am using BusyBox on FreeBSD, mostly on my embedded toys. As result i
> started to maintain port of it in the ports tree.
>
> Some of the applets require patches to build, so i decided to share them
> with upstream. I am using GH with my local mirror, hopefully that will work.
>
> Patch could be viewed here.
>
> https://patch-diff.githubusercontent.com/raw/samm-git/busybox/pull/1.patch
>
> Please let me know what needs to be done to move forward with it.


Send each change as a separate patch, with a short explanation why it's needed
(if not absolutely obvious).

Some parts looks a bit strange:

diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index a60c33c35..db7d840fe 100644
--- a/libbb/pw_encrypt.c
+++ b/libbb/pw_encrypt.c
@@ -7,8 +7,11 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 #if !ENABLE_USE_BB_CRYPT
+#ifdef __FreeBSD__
+#include <unistd.h>
+#else
 #include <crypt.h>
-#endif
+#endif#endif
 #include "libbb.h"

Why? <unistd.h> is already included via libbbb.h -> platform.h
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to