aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/mf-hooks2.c
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2005-08-22 17:12:18 -0700
committerJim Wilson <wilson@gcc.gnu.org>2005-08-22 17:12:18 -0700
commit75389255acc847a167112da906b562ad7919a95b (patch)
tree9650a50ab833e33e6188d4b9b6557bf2d27fabea /libmudflap/mf-hooks2.c
parent7768a94a9ac421699e4eb59d21f70d5ea4a3e25f (diff)
downloadgcc-75389255acc847a167112da906b562ad7919a95b.zip
gcc-75389255acc847a167112da906b562ad7919a95b.tar.gz
gcc-75389255acc847a167112da906b562ad7919a95b.tar.bz2
Fix FreeBSD fopen instrumentation.
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when __FreeBSD__ is defined. From-SVN: r103368
Diffstat (limited to 'libmudflap/mf-hooks2.c')
-rw-r--r--libmudflap/mf-hooks2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c
index 2b961b4..0ffcf09 100644
--- a/libmudflap/mf-hooks2.c
+++ b/libmudflap/mf-hooks2.c
@@ -544,8 +544,14 @@ WRAPPER2(struct tm*, gmtime, const time_t *timep)
/* The following indicate if the result of the corresponding function
* should be explicitly un/registered by the wrapper
*/
+
+#ifdef __FreeBSD__
+#define MF_REGISTER_fopen __MF_TYPE_STATIC
+#else
#undef MF_REGISTER_fopen
+#endif
#define MF_RESULT_SIZE_fopen (sizeof (FILE))
+
#undef MF_REGISTER_opendir
#define MF_RESULT_SIZE_opendir 0 /* (sizeof (DIR)) */
#undef MF_REGISTER_readdir