public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/which: fix build with musl
@ 2026-03-08 10:32 Shubham Chakraborty
  2026-03-08 10:32 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add myself as maintainer of package/which Shubham Chakraborty
  2026-03-08 19:44 ` [Buildroot] [PATCH 1/2] package/which: fix build with musl Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Shubham Chakraborty @ 2026-03-08 10:32 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni, Shubham Chakraborty

Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
---
 package/which/0001-fix-getopt-prototype.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/which/0001-fix-getopt-prototype.patch

diff --git a/package/which/0001-fix-getopt-prototype.patch b/package/which/0001-fix-getopt-prototype.patch
new file mode 100644
index 0000000000..29401b0f53
--- /dev/null
+++ b/package/which/0001-fix-getopt-prototype.patch
@@ -0,0 +1,11 @@
+--- a/getopt.h
++++ b/getopt.h
+@@ -102,7 +102,7 @@
+    errors, only prototype getopt for the GNU C library.  */
+ extern int getopt(int argc, char *const *argv, const char *shortopts);
+ #else  /* not __GNU_LIBRARY__ */
+-extern int getopt();
++extern int getopt(int argc, char *const *argv, const char *shortopts);
+ #endif /* __GNU_LIBRARY__ */
+ extern int getopt_long(int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind);
+ extern int getopt_long_only(int argc, char *const *argv, const char *shortopts, const struct option *longopts,
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-08 19:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-08 10:32 [Buildroot] [PATCH 1/2] package/which: fix build with musl Shubham Chakraborty
2026-03-08 10:32 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add myself as maintainer of package/which Shubham Chakraborty
2026-03-08 19:45   ` Thomas Petazzoni via buildroot
2026-03-08 19:44 ` [Buildroot] [PATCH 1/2] package/which: fix build with musl Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox