#!/bin/sh -e
## 80_amd64-fix.dpatch by Andreas Fester <Andreas.Fester@gmx.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

# [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
# patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
patch_opts="-d build-dir/mozilla/config -p $PATCH_DEPTH"


case "$1" in
       -patch) patch $patch_opts < $0;;
       -unpatch) patch $patch_opts -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -u gcc_hidden.h
--- mozilla/config/gcc_hidden.h	2004-12-15 06:52:34.000000000 +0100
+++ mozilla/config/gcc_hidden.h	2006-03-31 19:57:51.000000000 +0200
@@ -1,2 +1,2 @@
 /* Begin all files as hidden visibility */
-#pragma GCC visibility push(hidden)
+// #pragma GCC visibility push(hidden)
