mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-29 01:58:26 +00:00
Build fix due to bad include ordering.
This commit is contained in:
parent
0c83d64a86
commit
acfbad9b16
@ -4508,7 +4508,7 @@ static int do_config_step(int *line, FILE *fp, char *buf, char **name, char **va
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef X11
|
#ifdef X11
|
||||||
void setalignment(int* text_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
|
void setalignment(int* ltext_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
|
||||||
#ifdef OWN_WINDOW
|
#ifdef OWN_WINDOW
|
||||||
if (windowtype == TYPE_DOCK) {
|
if (windowtype == TYPE_DOCK) {
|
||||||
NORM_ERR("alignment is disabled when own_window_type is dock");
|
NORM_ERR("alignment is disabled when own_window_type is dock");
|
||||||
@ -4522,7 +4522,7 @@ void setalignment(int* text_alignment, unsigned int windowtype, const char* valu
|
|||||||
CONF_ERR;
|
CONF_ERR;
|
||||||
} else NORM_ERR("'%s' is not a alignment setting", value);
|
} else NORM_ERR("'%s' is not a alignment setting", value);
|
||||||
} else {
|
} else {
|
||||||
*text_alignment = a;
|
*ltext_alignment = a;
|
||||||
}
|
}
|
||||||
} else if(setbyconffile == true) {
|
} else if(setbyconffile == true) {
|
||||||
CONF_ERR;
|
CONF_ERR;
|
||||||
@ -5587,7 +5587,9 @@ static const struct option longopts[] = {
|
|||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
void set_current_config() {
|
void set_current_config(void);
|
||||||
|
void set_current_config(void)
|
||||||
|
{
|
||||||
/* check if specified config file is valid */
|
/* check if specified config file is valid */
|
||||||
if (current_config) {
|
if (current_config) {
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "logging.h"
|
|
||||||
#include "temphelper.h"
|
|
||||||
#include "text_object.h"
|
#include "text_object.h"
|
||||||
|
#include "temphelper.h"
|
||||||
|
#include "logging.h"
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
char *version;
|
char *version;
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "logging.h"
|
|
||||||
#include "text_object.h"
|
#include "text_object.h"
|
||||||
|
#include "logging.h"
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <logging.h>
|
|
||||||
#include "conky.h"
|
#include "conky.h"
|
||||||
|
#include "logging.h"
|
||||||
#include "proc.h"
|
#include "proc.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -28,11 +28,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <logging.h>
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "conky.h"
|
#include "conky.h"
|
||||||
|
#include "logging.h"
|
||||||
|
|
||||||
void print_uid_name(struct text_object *obj, char *p, int p_max_size) {
|
void print_uid_name(struct text_object *obj, char *p, int p_max_size) {
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user