diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 86b58686fc95a41cbad576314da073d6964b67bc..91fdca485bf29171566d09e4e45261e451b0efc5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* pa-hpux.h (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Define.
+
 2004-12-31  Hans-Peter Nilsson  <hp@bitrange.com>
 
 	PR target/18701
diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h
index b8ef0c170995b54c12d17ce10aec804070f45416..958c9efa6aca53404f1b0d5ba499f8e33da1a77f 100644
--- a/gcc/config/pa/pa-hpux.h
+++ b/gcc/config/pa/pa-hpux.h
@@ -121,3 +121,11 @@ Boston, MA 02111-1307, USA.  */
    compatibility with the HP-UX unwind library.  */
 #undef TARGET_HPUX_UNWIND_LIBRARY
 #define TARGET_HPUX_UNWIND_LIBRARY 1
+
+/* Handle #pragma weak and #pragma pack.  */
+#undef HANDLE_SYSV_PRAGMA
+#define HANDLE_SYSV_PRAGMA
+
+/* Define this so we can compile MS code for use with WINE.  */
+#undef HANDLE_PRAGMA_PACK_PUSH_POP
+#define HANDLE_PRAGMA_PACK_PUSH_POP