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 Version 2
Reported by: | lars.haulin@… | Owned by: | g5pw@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | tiger leopard | Cc: | |
Port: | avrdude |
Description (last modified by mf2k (Frank Schima))
This error has the same cause as 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)
Change History (2)
comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)
Keywords: | tiger leopard added |
---|---|
Owner: | changed from macports-tickets@… to g5pw@… |
comment:2 Changed 10 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.