Opened 9 years ago

Closed 9 years ago

#2262 closed bug (fixed)

"restrict" keyword issue in posix/search.h

Reported by: kaliber Owned by: axeld
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc: scottmc
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Consider a axample:

#include <unistd.h>
#include <search.h>
int main() { return 0; }

and try to compile:

In file included from /boot/home/1.c:2:
/boot/develop/headers/posix/search.h:35: conflicting types for `restrict'
/boot/develop/headers/posix/search.h:35: previous declaration of `restrict'

Changing restrict to restrict fixes the problem, but I'm not sure that is a good solution.

Change History (4)

comment:1 Changed 9 years ago by scottmc

  • Cc scottmc added

This affects tiff, maybe others. http://tools.assembla.com/BePorts/wiki/media-libs/tiff Adding myself to the cc so I'll know when I can try tiff again.

comment:2 Changed 9 years ago by scottmc

Others know to be held up by the restrict problem include: indent, sed and grep.

comment:3 Changed 9 years ago by axeld

  • Status changed from new to assigned

There are a couple of other issues with this header, too, I'm working on it.

comment:4 Changed 9 years ago by axeld

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in hrev25818.

Note: See TracTickets for help on using tickets.