1.1 --- a/plover/razor.c Sat Jul 16 11:07:18 2016 +0100
1.2 +++ b/plover/razor.c Thu Mar 02 11:14:54 2017 +0000
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Copyright (C) 2008 Kristian Høgsberg <krh@redhat.com>
1.6 * Copyright (C) 2008 Red Hat, Inc
1.7 - * Copyright (C) 2009, 2011, 2012, 2014 J. Ali Harlow <ali@juiblex.co.uk>
1.8 + * Copyright (C) 2009, 2011, 2012, 2014, 2016 J. Ali Harlow <ali@juiblex.co.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -33,6 +33,10 @@
1.13 #include "plover/transaction.h"
1.14 #include "plover/uri-handler.h"
1.15
1.16 +#if HAVE_DLFCN_H
1.17 +#define DEBUG_HOOK_RAZOR_SET /* For debugging */
1.18 +#endif
1.19 +
1.20 static char *rpm_filename(const char *name,const char *version,const char *arch)
1.21 {
1.22 const char *v;
1.23 @@ -298,6 +302,7 @@
1.24 return matches;
1.25 }
1.26
1.27 +#if DEBUG_HOOK_RAZOR_SET
1.28 #include <fcntl.h>
1.29 #include <dlfcn.h>
1.30
1.31 @@ -498,3 +503,4 @@
1.32 dump_razor_set_peek(set);
1.33 return set;
1.34 }
1.35 +#endif /* DEBUG_HOOK_RAZOR_SET */