Opened 14 years ago

Closed 14 years ago

#2596 closed Bugs (fixed)

FreeBSD requires unistd.h

Reported by: smr@… Owned by: René Rivera
Milestone: Boost 1.38.0 Component: bjam
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Reported by a Debian GNU/kFreeBSD user: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506736

The fix is to #include <unistd.h> in jam.h; see attached patch.

Attachments (1)

kfreebsd-jam.patch (291 bytes ) - added by smr@… 14 years ago.

Download all attachments as: .zip

Change History (4)

by smr@…, 14 years ago

Attachment: kfreebsd-jam.patch added

comment:1 by Vladimir Prus, 14 years ago

I am unsure why the include need to be wrapped in GLIBC. Please clarify.

in reply to:  1 comment:2 by smr@…, 14 years ago

Replying to vladimir_prus:

I am unsure why the include need to be wrapped in __GLIBC__. Please clarify.

I simply passed on the patch provided by the initial reported.

You're likely right that it doesn't need to be guareded by #ifdef __GLIBC__ Any reasonably modern unix should have unistd.h.

comment:3 by Vladimir Prus, 14 years ago

Resolution: fixed
Status: newclosed

(In [51896]) Include unistd.h

Fixes #2596.

Note: See TracTickets for help on using tickets.