summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpager/pager-create.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpager/pager-create.c b/libpager/pager-create.c
index 27882db8..0e140f33 100644
--- a/libpager/pager-create.c
+++ b/libpager/pager-create.c
@@ -49,3 +49,13 @@ pager_create (struct user_pager_info *upi,
}
+/* This causes the function to be run at startup by compiler magic. */
+static void create_class (void) __attribute__ ((constructor));
+
+static void
+create_class ()
+{
+ _pager_class = ports_create_class (_pager_clean, _pager_real_dropweak);
+}
+
+