From fe4a508bf0fae27f9026f49208fc97a5ef1cf99b Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Mon, 11 Jun 2012 13:32:32 +0200
Subject: [PATCH] unbreak build when numpy support is enabled

---
 modules/mol/base/pymod/export_entity.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/mol/base/pymod/export_entity.cc b/modules/mol/base/pymod/export_entity.cc
index e1e3ac409..ca9e439f3 100644
--- a/modules/mol/base/pymod/export_entity.cc
+++ b/modules/mol/base/pymod/export_entity.cc
@@ -94,6 +94,12 @@ PyObject* get_pos1(EntityHandle& entity)
 {
   return get_pos2(entity,true);
 }
+
+bool less_index(const mol::AtomHandle& a1, const mol::AtomHandle& a2)
+{
+  return a1.GetIndex()<a2.GetIndex();
+}
+
 #endif
 } // ns
 
-- 
GitLab