[git commit] Fixes for Hurd build

Denys Vlasenko vda.linux at googlemail.com
Thu Dec 17 10:22:44 UTC 2020


commit: https://git.busybox.net/busybox/commit/?id=072313162870e9675c3e6f346a804a324a907f93
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 applets/applet_tables.c     | 4 ++++
 libbb/die_if_bad_username.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index ce2037440..7ba929b12 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -20,6 +20,10 @@
 #undef ARRAY_SIZE
 #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #include "../include/autoconf.h"
 #include "../include/applet_metadata.h"
 
diff --git a/libbb/die_if_bad_username.c b/libbb/die_if_bad_username.c
index e5e1160c4..d05dc74c5 100644
--- a/libbb/die_if_bad_username.c
+++ b/libbb/die_if_bad_username.c
@@ -8,6 +8,10 @@
  */
 #include "libbb.h"
 
+#ifndef LOGIN_NAME_MAX
+#define LOGIN_NAME_MAX 256
+#endif
+
 /* To avoid problems, the username should consist only of
  * letters, digits, underscores, periods, at signs and dashes,
  * and not start with a dash (as defined by IEEE Std 1003.1-2001).


More information about the busybox-cvs mailing list