File file-5.04-visibility.patch of Package file.openSUSE_Evergreen_11.4

--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -11,7 +11,7 @@ libmagic_la_SOURCES = magic.c apprentice
 	encoding.c compress.c is_tar.c readelf.c print.c fsmagic.c \
 	funcs.c file.h names.h patchlevel.h readelf.h tar.h apptype.c \
 	file_opts.h elfclass.h mygetopt.h cdf.c cdf_time.c readcdf.c cdf.h
-libmagic_la_LDFLAGS = -no-undefined -version-info 1:0:0
+libmagic_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libmagic.map -no-undefined -version-info 1:0:0
 libmagic_la_LIBADD = $(LTLIBOBJS)
 
 file_SOURCES = file.c
--- /dev/null
+++ src/libmagic.map
@@ -0,0 +1,16 @@
+{
+global:
+  magic_buffer;
+  magic_check;
+  magic_close;
+  magic_compile;
+  magic_descriptor;
+  magic_errno;
+  magic_error;
+  magic_file;
+  magic_getpath;
+  magic_load;
+  magic_open;
+  magic_setflags;
+local: *;
+};
\ No newline at end of file