Opened 10 years ago
Last modified 8 years ago
#44717 closed defect
avrdude @6.1_2 dispatch/dispatch.h: No such file or directory — at Initial Version
Reported by: | lars.haulin@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | tiger leopard | Cc: | |
Port: | avrdude |
Description
This error has the same cause as https://trac.macports.org/ticket/38430
dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6
I was trying to build avrdude with Xcode 2.5 and OSX 10.4.11, got it to compile with this hack:
$ diff ft245r.c ft245r_original.c 131c131,138 < #include <sys/semaphore.h> --- > /* Mac OS X defines sem_init but actually does not implement them */ > #include <dispatch/dispatch.h> > > typedef dispatch_semaphore_t sem_t; > > #define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val) > #define sem_post(psem) dispatch_semaphore_signal(*psem) > #define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER)
Note: See
TracTickets for help on using
tickets.