Skip to content

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

@smurfd

Description

@smurfd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions