When compiling it produces this error:

gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX -no-cpp-precomp  -g -O2
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/os_unix.o os_unix.c
os_unix.c:830:46: warning: declaration of 'struct sigaltstack' will not be
visible outside of this function [-Wvisibility]
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct
sigaltstack *oss));
                                                    ^
./os_unix.h:88:21: note: expanded from macro '__ARGS'
#  define __ARGS(x) x
                    ^
os_unix.c:830:13: error: conflicting types for 'sigaltstack'
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct
sigaltstack *oss));
                   ^
/usr/include/signal.h:85:5: note: previous declaration is here
int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)
 __DARWIN_ALIAS(sigaltstack);
        ^
1 warning and 1 error generated.
make[1]: *** [objects/os_unix.o] Error 1

This patch fixes the problem!

*** vim74/src/os_unix.c 2013-07-03 09:32:32.000000000 -0500
--- os_unix.c 2013-12-25 15:43:49.000000000 -0600
***************
*** 25,30 ****
--- 25,34 ----
   * Don't use it for the Mac, it causes a warning for precompiled headers.
   * TODO: use a configure check for precompiled headers?
   */
+ #if defined(__APPLE__)
+ # include <AvailabilityMacros.h>
+ #endif
+
  #if !defined(__APPLE__) && !defined(__TANDEM)
  # define select select_declared_wrong
  #endif

Thanks!

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
*** vim74/src/os_unix.c 2013-07-03 09:32:32.000000000 -0500
--- os_unix.c   2013-12-25 15:43:49.000000000 -0600
***************
*** 25,30 ****
--- 25,34 ----
   * Don't use it for the Mac, it causes a warning for precompiled headers.
   * TODO: use a configure check for precompiled headers?
   */
+ #if defined(__APPLE__)
+ # include <AvailabilityMacros.h>
+ #endif
+ 
  #if !defined(__APPLE__) && !defined(__TANDEM)
  # define select select_declared_wrong
  #endif

Raspunde prin e-mail lui