scripts/build/libc/glibc-eglibc.sh-common
changeset 3194 23099a88a139
parent 3162 e51eb0a614c7
child 3195 cbaf37cc20b7
     1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common	Thu Jan 10 21:01:59 2013 +0100
     1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common	Sun Mar 03 22:18:35 2013 +0100
     1.3 @@ -404,8 +404,15 @@
     1.4              # but it breaks arm, see http://sourceware.org/ml/crossgcc/2006-01/msg00091.html
     1.5              case "${CT_ARCH}" in
     1.6                  arm)    ;;
     1.7 -                *)  CT_DoExecLog ALL cp -v "misc/syscall-list.h"            \
     1.8 -                                           "${CT_HEADERS_DIR}/bits/syscall.h"
     1.9 +                *)  if [ -f "misc/bits/syscall.h" ]; then
    1.10 +                        CT_DoExecLog ALL cp -v "misc/bits/syscall.h"            \
    1.11 +                                               "${CT_HEADERS_DIR}/bits/syscall.h"
    1.12 +                    else
    1.13 +                        # "Old" glibces do not have the above file,
    1.14 +                        # but provide this one:
    1.15 +                        CT_DoExecLog ALL cp -v "misc/syscall-list.h"            \
    1.16 +                                               "${CT_HEADERS_DIR}/bits/syscall.h"
    1.17 +                    fi
    1.18                      ;;
    1.19              esac
    1.20          fi