-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,
by coincidence I noticed that the ooRexx build unconditionally requires
xattr.h to be present if building on unix-like machines. I didn't have
that installed, thus the build failed.

Here is a small patch to resolve the issue, I just want to make sure
that it will not break anything, so please look at it.

Thanks a lot,
Moritz


Index: configure.ac
===================================================================
- --- configure.ac        (revision 5945)
+++ configure.ac        (working copy)
@@ -306,6 +306,7 @@
                   sys/time.h \
                   sys/utsname.h \
                   sys/wait.h \
+                  attr/xattr.h \
                   sys/syscall.h \
                   time.h \
                   unistd.h \
@@ -470,4 +471,4 @@
         platform/unix/oorexx-config
  ])

- -AC_OUTPUT
+    AC_OUTPUT
Index: extensions/rexxutil/platform/unix/rexxutil.cpp
===================================================================
- --- extensions/rexxutil/platform/unix/rexxutil.cpp      (revision 5945)
+++ extensions/rexxutil/platform/unix/rexxutil.cpp      (working copy)
@@ -192,8 +192,9 @@
 #include <netdb.h>
 #include <wordexp.h>
 #include <alloca.h>
- -#ifndef AIX
- -#include <attr/xattr.h>
+
+#if defined( HAVE_ATTR_XATTR_H )
+# include <attr/xattr.h>
 #endif


@@ -4706,7 +4707,7 @@
     return (RexxObjectPtr)arr;
 }

- -#ifndef AIX
+#if defined( HAVE_ATTR_XATTR_H )
 /**
  * Method:        SysSetxattr
  *
@@ -6152,7 +6153,7 @@
     REXX_TYPED_ROUTINE(SysGetservbyname, SysGetservbyname),
     REXX_TYPED_ROUTINE(SysGetservbyport, SysGetservbyport),
     REXX_TYPED_ROUTINE(SysWordexp, SysWordexp),
- -#ifndef AIX
+#if defined( HAVE_ATTR_XATTR_H )
     REXX_TYPED_ROUTINE(SysSetxattr, SysSetxattr),
     REXX_TYPED_ROUTINE(SysGetxattr, SysGetxattr),
     REXX_TYPED_ROUTINE(SysListxattr, SysListxattr),
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvpXaIACgkQl56sB+DIUZSp+QCdHcAAmd7Sx8gzSH/U01uEpODj
dPUAn2AcmjvhlXEeAHlxtw2vuvHumsyw
=Vlrb
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to