Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 94637 | Differences between
and this patch

Collapse All | Expand All

(-)Python-2.4.1/configure (+110 lines)
Lines 16411-16416 Link Here
16411
16411
16412
fi
16412
fi
16413
16413
16414
echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
16415
echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
16416
if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
16417
  echo $ECHO_N "(cached) $ECHO_C" >&6
16418
else
16419
  cat >conftest.$ac_ext <<_ACEOF
16420
/* confdefs.h.  */
16421
_ACEOF
16422
cat confdefs.h >>conftest.$ac_ext
16423
cat >>conftest.$ac_ext <<_ACEOF
16424
/* end confdefs.h.  */
16425
$ac_includes_default
16426
int
16427
main ()
16428
{
16429
static struct stat ac_aggr;
16430
if (ac_aggr.st_flags)
16431
return 0;
16432
  ;
16433
  return 0;
16434
}
16435
_ACEOF
16436
rm -f conftest.$ac_objext
16437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438
  (eval $ac_compile) 2>conftest.er1
16439
  ac_status=$?
16440
  grep -v '^ *+' conftest.er1 >conftest.err
16441
  rm -f conftest.er1
16442
  cat conftest.err >&5
16443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444
  (exit $ac_status); } &&
16445
	 { ac_try='test -z "$ac_c_werror_flag"
16446
			 || test ! -s conftest.err'
16447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448
  (eval $ac_try) 2>&5
16449
  ac_status=$?
16450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451
  (exit $ac_status); }; } &&
16452
	 { ac_try='test -s conftest.$ac_objext'
16453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454
  (eval $ac_try) 2>&5
16455
  ac_status=$?
16456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457
  (exit $ac_status); }; }; then
16458
  ac_cv_member_struct_stat_st_flags=yes
16459
else
16460
  echo "$as_me: failed program was:" >&5
16461
sed 's/^/| /' conftest.$ac_ext >&5
16462
16463
cat >conftest.$ac_ext <<_ACEOF
16464
/* confdefs.h.  */
16465
_ACEOF
16466
cat confdefs.h >>conftest.$ac_ext
16467
cat >>conftest.$ac_ext <<_ACEOF
16468
/* end confdefs.h.  */
16469
$ac_includes_default
16470
int
16471
main ()
16472
{
16473
static struct stat ac_aggr;
16474
if (sizeof ac_aggr.st_flags)
16475
return 0;
16476
  ;
16477
  return 0;
16478
}
16479
_ACEOF
16480
rm -f conftest.$ac_objext
16481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482
  (eval $ac_compile) 2>conftest.er1
16483
  ac_status=$?
16484
  grep -v '^ *+' conftest.er1 >conftest.err
16485
  rm -f conftest.er1
16486
  cat conftest.err >&5
16487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488
  (exit $ac_status); } &&
16489
	 { ac_try='test -z "$ac_c_werror_flag"
16490
			 || test ! -s conftest.err'
16491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492
  (eval $ac_try) 2>&5
16493
  ac_status=$?
16494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495
  (exit $ac_status); }; } &&
16496
	 { ac_try='test -s conftest.$ac_objext'
16497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498
  (eval $ac_try) 2>&5
16499
  ac_status=$?
16500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501
  (exit $ac_status); }; }; then
16502
  ac_cv_member_struct_stat_st_flags=yes
16503
else
16504
  echo "$as_me: failed program was:" >&5
16505
sed 's/^/| /' conftest.$ac_ext >&5
16506
16507
ac_cv_member_struct_stat_st_flags=no
16508
fi
16509
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16510
fi
16511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512
fi
16513
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
16514
echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
16515
if test $ac_cv_member_struct_stat_st_flags = yes; then
16516
16517
cat >>confdefs.h <<_ACEOF
16518
#define HAVE_STRUCT_STAT_ST_FLAGS 1
16519
_ACEOF
16520
16521
16522
fi
16523
16414
echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16524
echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16415
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16525
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16416
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16526
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
(-)Python-2.4.1/configure.in (+1 lines)
Lines 2421-2426 Link Here
2421
AC_STRUCT_TIMEZONE
2421
AC_STRUCT_TIMEZONE
2422
AC_CHECK_MEMBERS([struct stat.st_rdev])
2422
AC_CHECK_MEMBERS([struct stat.st_rdev])
2423
AC_CHECK_MEMBERS([struct stat.st_blksize])
2423
AC_CHECK_MEMBERS([struct stat.st_blksize])
2424
AC_CHECK_MEMBERS([struct stat.st_flags])
2424
AC_STRUCT_ST_BLOCKS
2425
AC_STRUCT_ST_BLOCKS
2425
2426
2426
AC_MSG_CHECKING(for time.h that defines altzone)
2427
AC_MSG_CHECKING(for time.h that defines altzone)
(-)Python-2.4.1/Modules/posixmodule.c (+13 lines)
Lines 703-708 Link Here
703
#ifdef HAVE_STRUCT_STAT_ST_RDEV
703
#ifdef HAVE_STRUCT_STAT_ST_RDEV
704
	{"st_rdev",    "device type (if inode device)"},
704
	{"st_rdev",    "device type (if inode device)"},
705
#endif
705
#endif
706
#ifdef HAVE_STRUCT_STAT_ST_FLAGS
707
	{"st_flags",    "flags set onf ile"},
708
#endif
706
	{0}
709
	{0}
707
};
710
};
708
711
Lines 724-729 Link Here
724
#define ST_RDEV_IDX ST_BLOCKS_IDX
727
#define ST_RDEV_IDX ST_BLOCKS_IDX
725
#endif
728
#endif
726
729
730
#ifdef HAVE_STRUCT_STAT_ST_FLAGS
731
#define ST_FLAGS_IDX (ST_RDEV_IDX+1)
732
#else
733
#define ST_FLAGS_IDX ST_RDEV_IDX
734
#endif
735
727
static PyStructSequence_Desc stat_result_desc = {
736
static PyStructSequence_Desc stat_result_desc = {
728
	"stat_result", /* name */
737
	"stat_result", /* name */
729
	stat_result__doc__, /* doc */
738
	stat_result__doc__, /* doc */
Lines 887-892 Link Here
887
	PyStructSequence_SET_ITEM(v, ST_RDEV_IDX,
896
	PyStructSequence_SET_ITEM(v, ST_RDEV_IDX,
888
			 PyInt_FromLong((long)st.st_rdev));
897
			 PyInt_FromLong((long)st.st_rdev));
889
#endif
898
#endif
899
#ifdef HAVE_STRUCT_STAT_ST_FLAGS
900
	PyStructSequence_SET_ITEM(v, ST_FLAGS_IDX,
901
			 PyInt_FromLong((long)st.st_flags));
902
#endif
890
903
891
	if (PyErr_Occurred()) {
904
	if (PyErr_Occurred()) {
892
		Py_DECREF(v);
905
		Py_DECREF(v);
(-)Python-2.4.1/pyconfig.h.in (+3 lines)
Lines 480-485 Link Here
480
/* Define to 1 if `st_blocks' is member of `struct stat'. */
480
/* Define to 1 if `st_blocks' is member of `struct stat'. */
481
#undef HAVE_STRUCT_STAT_ST_BLOCKS
481
#undef HAVE_STRUCT_STAT_ST_BLOCKS
482
482
483
/* Define to 1 if `st_flags' is member of `struct stat'. */
484
#undef HAVE_STRUCT_STAT_ST_FLAGS
485
483
/* Define to 1 if `st_rdev' is member of `struct stat'. */
486
/* Define to 1 if `st_rdev' is member of `struct stat'. */
484
#undef HAVE_STRUCT_STAT_ST_RDEV
487
#undef HAVE_STRUCT_STAT_ST_RDEV
485
488

Return to bug 94637