chapayGhub / gopacket

Automatically exported from code.google.com/p/gopacket
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Compile error on OSX 10.9.4 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

On OSX 10.9.4 with Go 1.3 I'm trying to

$ go get code.google.com/p/gopacket/pcap

But it is failing with the following error:

38: error: use of undeclared identifier '__suseconds_t'; did you mean 
'suseconds_t'?
38: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?

Does anybody know what causes this?

Thanks,

Ben

Original issue reported on code.google.com by gconnell@google.com on 6 Aug 2014 at 4:07

GoogleCodeExporter commented 9 years ago
I've reproduced this locally.

Original comment by gconnell@google.com on 6 Aug 2014 at 4:08

GoogleCodeExporter commented 9 years ago
I think this should iron out the issues.

Confirmed it works on my macbook and ubuntu box... sadly, I don't have a 
windows machine to test on at them moment, but from looking at winsock.h, 
"long" is the value we want.

https://code.google.com/p/gopacket/source/detail?r=4c8bc2bcc000efdceb09366208734
23d31f133a3

Original comment by gconnell@google.com on 6 Aug 2014 at 5:08