Skip to content

Compiling on OSX #1

@darksheer

Description

@darksheer

Got the glibc packages working, but getting this error:

cc -g sctpscan.c -o sctpscan -lglib-2.0 -I/opt/local/include/glib-2.0/ -I/opt/local/lib/glib-2.0/include/ -m32
sctpscan.c:1987:12: error: too many arguments to function call, expected 0, have 2
setpgrp(0, getpid());
~~~~~~~ ^~~~~~~~~~~
/usr/include/unistd.h:586:1: note: 'setpgrp' declared here
pid_t setpgrp(void) __DARWIN_ALIAS(setpgrp);
^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions