Remove underscores before fcntl flags
authorRamiro Polla <ramiro.polla@gmail.com>
Wed, 11 Jul 2007 15:21:24 +0000 (15:21 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Wed, 11 Jul 2007 15:21:24 +0000 (15:21 +0000)
Originally committed as revision 9599 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index cd2037884df5e19c53e171c9e3f914e27b28b451..bdc67c16afb5e8366cab21e0a2b2e3bedd192662 100644 (file)
@@ -1345,7 +1345,7 @@ int av_tempfile(char *prefix, char **filename) {
         return -1;
     }
 #if !defined(HAVE_MKSTEMP)
-    fd = open(*filename, _O_RDWR | _O_BINARY | _O_CREAT, 0444);
+    fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
 #else
     snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
     fd = mkstemp(*filename);