avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bug #48134] ft245r.c : dispatch/dispatch.h: No such file


From: anonymous
Subject: [avrdude-dev] [bug #48134] ft245r.c : dispatch/dispatch.h: No such file or directory
Date: Sun, 5 Jun 2016 08:17:53 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; PPC Mac OS X 10.4; rv:38.0) Gecko/20100101 Firefox/38.0 TenFourFox/7450

URL:
  <http://savannah.nongnu.org/bugs/?48134>

                 Summary: ft245r.c : dispatch/dispatch.h: No such file or
directory
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Sun 05 Jun 2016 08:17:51 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Phillip Stevens
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When compiling 6.3 on Mac OSX 10.4.11 with MacPorts the build fails because
the dispatch.h file does not exist.

dispatch/dispatch.h was added with Grand Central in 10.6, I understand.

This bug was originally reported here
https://trac.macports.org/ticket/44717

And I reported the same thing here
https://trac.macports.org/ticket/51566

Tested that the fix suggested works on
avrdude 6.3
MacPorts 2.3.4
OSX10.4.11

Proposed resolution, in ft245r.c :

< #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)






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?48134>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]