projects
/
debian
/
tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f819a
)
(decode_oflag): O_APPEND might not be defined.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 13 Dec 1999 04:52:26 +0000
(
04:52
+0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 13 Dec 1999 04:52:26 +0000
(
04:52
+0000)
src/rmt.c
patch
|
blob
|
history
src/rtapelib.c
patch
|
blob
|
history
diff --git
a/src/rmt.c
b/src/rmt.c
index e960f10b9377bd09d5a94ad2f2838da4b2f45287..e4e8f44bc23e1eb8e99ecbe3420ebdd178220d6d 100644
(file)
--- a/
src/rmt.c
+++ b/
src/rmt.c
@@
-204,7
+204,9
@@
decode_oflag (char const *oflag_string)
struct name_value_pair { char const *name; int value; };
static struct name_value_pair const table[] =
{
+#ifdef O_APPEND
{"APPEND", O_APPEND},
+#endif
{"CREAT", O_CREAT},
#ifdef O_DSYNC
{"DSYNC", O_DSYNC},
diff --git
a/src/rtapelib.c
b/src/rtapelib.c
index 8ec2f81df3bfbcab493cfc7420fd565889a86022..19d2d2dd7d885f221ccae788be6f0230b1637685 100644
(file)
--- a/
src/rtapelib.c
+++ b/
src/rtapelib.c
@@
-328,7
+328,9
@@
encode_oflag (char *buf, int oflag)
default: abort ();
}
+#ifdef O_APPEND
if (oflag & O_APPEND) strcat (buf, "|O_APPEND");
+#endif
if (oflag & O_CREAT) strcat (buf, "|O_CREAT");
#ifdef O_DSYNC
if (oflag & O_DSYNC) strcat (buf, "|O_DSYNC");