cpufreq - fix ifdefs for unused fucn on bsd

enlightenment-0.24
Carsten Haitzler 3 years ago
parent cda79aff9e
commit 8dd052e6e3
  1. 9
      src/modules/cpufreq/e_mod_main.c

@ -43,7 +43,6 @@ static Cpu_Status *_cpufreq_status_new(void);
static void _cpufreq_status_free(Cpu_Status *s);
static void _cpufreq_status_check_available(Cpu_Status *s);
static int _cpufreq_status_check_current(Cpu_Status *s);
static int _cpufreq_cb_sort(const void *item1, const void *item2);
static void _cpufreq_face_update_available(Instance *inst);
static void _cpufreq_face_update_current(Instance *inst);
static void _cpufreq_face_cb_set_frequency(void *data, Evas_Object *o, const char *emission, const char *source);
@ -63,6 +62,11 @@ static void _cpufreq_menu_frequency(void *data, E_Menu *m, E_Menu_Item *mi)
static void _cpufreq_menu_pstate_min(void *data, E_Menu *m, E_Menu_Item *mi);
static void _cpufreq_menu_pstate_max(void *data, E_Menu *m, E_Menu_Item *mi);
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined (__OpenBSD__)
#else
static int _cpufreq_cb_sort(const void *item1, const void *item2);
#endif
static E_Config_DD *conf_edd = NULL;
Config *cpufreq_config = NULL;
@ -623,6 +627,8 @@ _cpufreq_status_free(Cpu_Status *s)
free(s);
}
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined (__OpenBSD__)
#else
static int
_cpufreq_cb_sort(const void *item1, const void *item2)
{
@ -635,6 +641,7 @@ _cpufreq_cb_sort(const void *item1, const void *item2)
return 1;
return 0;
}
#endif
static void
_cpufreq_status_check_available(Cpu_Status *s)

Loading…
Cancel
Save