aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2008-05-03 23:36:00 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2008-05-03 23:36:00 +0000
commit0aca787a7b5ec7496804ed2b42cbf9108d6b3f80 (patch)
tree36ddc40fe37ff76d54d07608dec92a89188c180c /gnu
parente1e27ead344885aa2ed816282a6a64003ccf08b6 (diff)
downloadsrc-0aca787a7b5ec7496804ed2b42cbf9108d6b3f80.tar.gz
src-0aca787a7b5ec7496804ed2b42cbf9108d6b3f80.zip
Unbreak build: gnu sort has been configured to grope inside struct
__sFILE. It's opaque now, so add a function that returns the pending output bytes. Pointy hat: jhb
Notes
Notes: svn path=/head/; revision=178755
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/sort/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/sort/config.h b/gnu/usr.bin/sort/config.h
index 44f944c04b0c..279456cb153e 100644
--- a/gnu/usr.bin/sort/config.h
+++ b/gnu/usr.bin/sort/config.h
@@ -1240,7 +1240,7 @@
#define PACKAGE_VERSION "5.3.0-20040812-FreeBSD"
/* the number of pending output bytes on stream `fp' */
-#define PENDING_OUTPUT_N_BYTES fp->_p - fp->_bf._base
+#define PENDING_OUTPUT_N_BYTES __fgetpendout(fp)
/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
/* #undef PRI_MACROS_BROKEN */