pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Getting net/cdpd to work on aarch64
jmitchel%bigjar.com@localhost (Jason Mitchell) writes:
>Long story short, it looks like getopt is returning 255 after parsing
>the arguments, so changing the top line
>to "while((c=getopt(argc,argv,"i:dt:hoa"))!=255" makes things work
>now on arm. But the same change causes the amd64 version to fail because
>on amd64 getopt returns -1 when done. I'm a very poor c programmer so
>I'm hoping someone can figure out how to fix things so cdpd runs on both
>x86 and arm architectures.
'c' is probably a char variable, which is 'signed char' on x86
but 'unsigned char' on arm. On arm it can never have a negative
value.
You need to make 'c' an int variable.
Home |
Main Index |
Thread Index |
Old Index