]> Dogcows Code - chaz/tar/commitdiff
(decode_oflag): O_APPEND might not be defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Dec 1999 04:52:26 +0000 (04:52 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Dec 1999 04:52:26 +0000 (04:52 +0000)
src/rmt.c
src/rtapelib.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},
index 8ec2f81df3bfbcab493cfc7420fd565889a86022..19d2d2dd7d885f221ccae788be6f0230b1637685 100644 (file)
@@ -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");
This page took 0.023878 seconds and 4 git commands to generate.