summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/chdir.c')
-rw-r--r--source3/smbwrapper/chdir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbwrapper/chdir.c b/source3/smbwrapper/chdir.c
index 13e9e0fa55..41b3772603 100644
--- a/source3/smbwrapper/chdir.c
+++ b/source3/smbwrapper/chdir.c
@@ -21,6 +21,10 @@
#include "wrapper.h"
+#ifdef linux
+__asm__(".globl __chdir; __chdir = chdir");
+#endif
+
int chdir(__const char *name)
{
return smbw_chdir(name);