]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_monitor: Add dependency on func_periodic_hook. 72/72/1
authorCorey Farrell <git@cfware.com>
Mon, 13 Apr 2015 11:19:14 +0000 (07:19 -0400)
committerCorey Farrell <git@cfware.com>
Mon, 13 Apr 2015 11:27:40 +0000 (07:27 -0400)
OPTIONAL_API has conditionals to define AST_OPTIONAL_API and
AST_OPTIONAL_API_ATTR differently based on if AST_API_MODULE is defined.
Unfortunately this is inside the include protection block, so only the
first status of AST_API_MODULE is respected.  For example res_monitor
is an optional API provider, but uses func_periodic_hook.  This makes
func_periodic_hook non-optional to res_monitor.

ASTERISK-17608 #close
Reported by: Warren Selby

Change-Id: I8fcf2a5e7b481893e17484ecde4f172c9ffb5679

res/res_monitor.c

index 872f565f0b6e31d9049b37758d60987592cf130c..ebf98439c1aa7a1b86c804936989c0598cd2320e 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 /*** MODULEINFO
+       <depend type="module">func_periodic_hook</depend>
        <support_level>core</support_level>
  ***/