diff options
author | unknown <tsmith/tim@siva.hindu.god> | 2006-12-04 14:41:08 -0700 |
---|---|---|
committer | unknown <tsmith/tim@siva.hindu.god> | 2006-12-04 14:41:08 -0700 |
commit | 56142bb27fc900e031c93082b78c8a27b1164e0e (patch) | |
tree | a9e024a4e9f77af66bb649cc4746df36d79412f6 /storage | |
parent | 1f695dbf7d0df8085ef974e0d5a2f71968ce944b (diff) | |
download | mariadb-git-56142bb27fc900e031c93082b78c8a27b1164e0e.tar.gz |
Change ::fileno() to fileno() in ndb/common/util/File.cpp.
fileno(), and many other stdio functions, may be macros
(at least on *BSD).
Don't explicitly qualify it with global scope (::fileno()),
because it causes syntax errors.
<cstdio> doesn't define *most* of these macros.
It still has a macro for fileno(), however, on FreeBSD 6.1,
so even using <cstdio> isn't a fix for this. Better to
just avoid ::standard_library_function() in general, in
order to be portable.
storage/ndb/src/common/util/File.cpp:
fileno(), and many other stdio functions, may be macros
(at least on *BSD).
Don't explicitly qualify it with global scope (::fileno()),
because it causes syntax errors.
Note that <cstdio> doesn't define *most* of these macros.
It still has a macro for fileno(), however, on FreeBSD 6.1,
so even using <cstdio> isn't a fix for this. Better to
just avoid ::standard_library_function() in general, in
order to be portable.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/ndb/src/common/util/File.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/ndb/src/common/util/File.cpp b/storage/ndb/src/common/util/File.cpp index d893260f564..55a3cb70534 100644 --- a/storage/ndb/src/common/util/File.cpp +++ b/storage/ndb/src/common/util/File.cpp @@ -51,7 +51,7 @@ File_class::size(FILE* f) MY_STAT s; // Note that my_fstat behaves *differently* than my_stat. ARGGGHH! - if(my_fstat(::fileno(f), &s, MYF(0))) + if (my_fstat(fileno(f), &s, MYF(0))) return 0; return s.st_size; |