gnome-libs portability patch



Miguel, or whoever has time, access, and the will:  Please find
attached a small patch which helps gnome-libs configure for me.  DG/UX
has scandir() and alphasort(), but no function prototypes for same.
This patch is needed to compile gnome-libs on this platform.

	Thanks,

	Marc

---------

Index: gnome-libs/acconfig.h
===================================================================
RCS file: /cvs/gnome/gnome-libs/acconfig.h,v
retrieving revision 1.32
diff -c -r1.32 acconfig.h
*** acconfig.h	1998/12/10 20:47:31	1.32
--- acconfig.h	1999/01/05 21:07:55
***************
*** 33,35 ****
--- 33,36 ----
  #undef HAVE_PTY_H
  #undef HAVE_UTIL_H
  #undef HAVE_SENDMSG
+ #undef NEED_DECLARATION_SCANDIR
Index: gnome-libs/macros/gnome-support.m4
===================================================================
RCS file: /cvs/gnome/gnome-common/macros/gnome-support.m4,v
retrieving revision 1.29
diff -c -r1.29 gnome-support.m4
*** gnome-support.m4	1998/12/17 00:06:51	1.29
--- gnome-support.m4	1999/01/05 21:07:57
***************
*** 50,56 ****
    # see if we need to declare some functions.  Solaris is notorious for
    # putting functions into the `libc' but not listing them in the headers
    AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
!   GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
  
    # Turn our LIBOBJS into libtool objects.  This is gross, but it
    # requires changes to autoconf before it goes away.
--- 50,56 ----
    # see if we need to declare some functions.  Solaris is notorious for
    # putting functions into the `libc' but not listing them in the headers
    AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
!   GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
  
    # Turn our LIBOBJS into libtool objects.  This is gross, but it
    # requires changes to autoconf before it goes away.
Index: gnome-libs/support/gnomesupport.awk
===================================================================
RCS file: /cvs/gnome/gnome-common/support/gnomesupport.awk,v
retrieving revision 1.11
diff -c -r1.11 gnomesupport.awk
*** gnomesupport.awk	1998/09/03 00:30:04	1.11
--- gnomesupport.awk	1999/01/05 21:07:58
***************
*** 84,90 ****
      print "int mkstemp (char */*template*/);";
    }
    
!   if (!def["HAVE_SCANDIR"]) {
      print "";
      print "/* Scan the directory DIR, calling SELECTOR on each directory";
      print "   entry.  Entries for which SELECTOR returns nonzero are";
--- 84,90 ----
      print "int mkstemp (char */*template*/);";
    }
    
!   if (!def["HAVE_SCANDIR"] || def["NEED_DECLARATION_SCANDIR"]) {
      print "";
      print "/* Scan the directory DIR, calling SELECTOR on each directory";
      print "   entry.  Entries for which SELECTOR returns nonzero are";



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