rsc Debug Build Patch

Edward Peterlin

1/13/02

Introduction

When building the debug build, the build process will fail in the i18n module due to a duplicate prototype of alarm() in the rsc module. This patch is necessary for the OS X build to succeed with debugging turned on.

If building without debug turned on, the faulty code isn't included by the preprocessor and the build will succeed.

The Patch

The patch is to the cpp3.c file in the rsc module. The patch consists of guarding the faulty redefinition of alarm() under an #ifndef MACOSX guard.

The patch is available from:

To apply the patch

  1. cd /your/openoffice/root/rsc
  2. patch -p0 < /path/to/downloaded/rsc.011302.diff