TritonDataCenter / pkgsrc

NetBSD/pkgsrc fork for our binary package repositories
https://pkgsrc.smartos.org/
131 stars 51 forks source link

binary install of pkgsrc for macos lacks getopt_long_only in include/getopt.h #372

Open smurfd opened 7 months ago

smurfd commented 7 months ago

Hey Installing https://pkgsrc.joyent.com/install-on-macos/ on a Mac M3 does not have these in /opt/pkg/include/getopt.h

extern int getopt_long_only (int ___argc, char *const *___argv,
           const char *__shortopts,
                 const struct option *__longopts, int *__longind);

/* Internal only.  Users should not call this directly.  */
extern int _getopt_internal (int ___argc, char *const *___argv,
           const char *__shortopts,
                 const struct option *__longopts, int *__longind,
           int __long_only);

I mean sure i can add them, manually, but :) i do see they are in the # ifndef __need_getopt but afaik it is needed for mac

is it "just" missing in the binary representation of pkgsrc or am i missing something?