bump version
[buildroot.git] / package / samba / samba-use-unsigned-enums.patch
blob228680ea109edeb42d5f8af7ce409fa2dbdfc07b
1 diff -ur samba-3.0.25a/source/configure.in samba-3.0.25a-patched/source/configure.in
2 --- samba-3.0.25a/source/configure.in 2007-06-19 11:40:49.000000000 -0500
3 +++ samba-3.0.25a-patched/source/configure.in 2007-06-19 11:45:04.000000000 -0500
4 @@ -511,37 +511,8 @@
5 AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
6 fi
8 -############################################
9 -# check if the compiler can handle negative enum values
10 -# and don't truncate the values to INT_MAX
11 -# a runtime test is needed here
12 -AC_SUBST(PIDL_ARGS)
13 -AC_CACHE_CHECK([that the C compiler understands negative enum values],SMB_BUILD_CC_NEGATIVE_ENUM_VALUES, [
14 - AC_TRY_RUN(
16 - #include <stdio.h>
17 - enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
18 - int main(void) {
19 - enum negative_values v1 = NEGATIVE_VALUE;
20 - unsigned v2 = NEGATIVE_VALUE;
22 - if (v1 != 0xFFFFFFFF) {
23 - printf("%u != 0xFFFFFFFF\n", v1);
24 - return 1;
25 - }
26 - if (v2 != 0xFFFFFFFF) {
27 - printf("%u != 0xFFFFFFFF\n", v2);
28 - return 1;
29 - }
31 - return 0;
32 - }
33 -],
34 - SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes,SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=no)])
35 -if test x"$SMB_BUILD_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
36 - AC_MSG_WARN([using --unit-enums for pidl])
37 - PIDL_ARGS="$PIDL_ARGS --uint-enums"
38 -fi
39 +# Just hard code this for cross compile cases
40 +PIDL_ARGS="$PIDL_ARGS --uint-enums"
42 dnl Figure out the flags to support named structure initializers