emacs-devel
[Top][All Lists]
Advanced

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

Re: recent commit broke src/dired.c on OSX


From: Randal L. Schwartz
Subject: Re: recent commit broke src/dired.c on OSX
Date: Sun, 25 Jul 2010 10:40:45 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix)

>>>>> "Juanma" == Juanma Barranquero <address@hidden> writes:

Juanma> Sure. I'd prefer to make it more portable (that already compiles on
Juanma> Windows / MinGW and Ubuntu / GCC).

Juanma> What is the right prototype in your system? (You didn't attach the
Juanma> error output, BTW). Could you send a patch with the relevant
Juanma> #ifdef?

Sorry, right commit, wrong reason.  Here's the error:

    /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c:85: error:
    conflicting types for 'getcwd'
    /usr/include/unistd.h:445: error: previous declaration of 'getcwd' was
    here
    make[2]: *** [emacsclient] Error 1
    make[1]: *** [lib-src] Error 2
    make: *** [bootstrap] Error 2

So it's something with:

  -char *(getcwd) ();
  +char *(getcwd) (char *, int);

On BSD, the prototype is:

     #include <unistd.h>

     char *
     getcwd(char *buf, size_t size);

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<address@hidden> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



reply via email to

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