Hi,
      The error that I get is related to the v2.6.31 bionic/libc/
kernel/common/linux/tcp.h file, line 60

enum {
 TCP_FLAG_CWR = __cpu_to_be32(0x00800000),
 TCP_FLAG_ECE = __cpu_to_be32(0x00400000),
 TCP_FLAG_URG = __cpu_to_be32(0x00200000),
 TCP_FLAG_ACK = __cpu_to_be32(0x00100000),
 TCP_FLAG_PSH = __cpu_to_be32(0x00080000),
 TCP_FLAG_RST = __cpu_to_be32(0x00040000),
 TCP_FLAG_SYN = __cpu_to_be32(0x00020000),
 TCP_FLAG_FIN = __cpu_to_be32(0x00010000),
 TCP_RESERVED_BITS = __cpu_to_be32(0x0F000000),
 TCP_DATA_OFFSET = __cpu_to_be32(0xF0000000)
};


the error is :

In file included from bionic/libc/include/netinet/tcp.h:32,
                 from frameworks/base/core/jni/
android_net_LocalSocketImpl.cpp:37:
bionic/libc/kernel/common/linux/tcp.h:62: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:63: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:64: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:65: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:66: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:67: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:68: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:69: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:70: error: a function call
cannot appear in a constant-expression
bionic/libc/kernel/common/linux/tcp.h:71: error: a function call
cannot appear in a constant-expression


Those functions are defined in bionic/libc/kernel/common/linux/
byteorder/little_endian.h

I'm somehow not able to get those definitions to come through.

Best regards,

Elvis

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to