diff --git a/src/mixed-cosserat-continuum.cc b/src/mixed-cosserat-continuum.cc
index 993b0582167014fc2c7b7dc7069f072dbf102372..bce3520951397930ec5d998df5fd644fa9b3372b 100644
--- a/src/mixed-cosserat-continuum.cc
+++ b/src/mixed-cosserat-continuum.cc
@@ -1,5 +1,8 @@
 #include <config.h>
 
+// Hack to make IPOpt happy.  No idea why the build system doesn't properly handle this
+#define HAVE_CSTDDEF
+
 #define SECOND_ORDER
 
 #include <fenv.h>
@@ -250,7 +253,7 @@ int main (int argc, char *argv[]) try
     OrientationFEBasis orientationFEBasis(gridView);
 
     std::cout << "Deformation: " << deformationFEBasis.size() << ",   orientation: " << orientationFEBasis.size() << std::endl;
-    
+
     // /////////////////////////////////////////
     //   Read Dirichlet values
     // /////////////////////////////////////////