Skip to content

Commit

Permalink
x11-plugins/wmcalendar: fix patch
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/784302
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 20, 2021
1 parent 5e6ebe8 commit 59d4a38
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- a/src/calendar.c
+++ b/Src/calendar.c
--- a/calendar.c
+++ b/calendar.c
@@ -1,5 +1,10 @@
#include "calendar.h"

Expand All @@ -11,8 +11,8 @@
int get_datetype(int day){return datetype[day][0];}

/*------------------------------------------------------
--- a/Src/calendarfunc.c
+++ b/Src/calendarfunc.c
--- a/calendarfunc.c
+++ b/calendarfunc.c
@@ -24,6 +24,7 @@
#include <stdio.h>

Expand All @@ -21,17 +21,17 @@

long persian_jdn(struct icaltimetype dt)
{
--- a/Src/calendarfunc.h
+++ b/Src/calendarfunc.h
--- a/calendarfunc.h
+++ b/calendarfunc.h
@@ -70,5 +70,5 @@

int Ceil(float number);

-int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn,
+extern int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn,
[jdn%32][1] stores jdn. */
--- a/Src/calendar.h
+++ b/Src/calendar.h
--- a/calendar.h
+++ b/calendar.h
@@ -5,10 +5,10 @@
#include <sys/stat.h>

Expand All @@ -47,8 +47,8 @@
[jdn%32][1] stores jdn. */
struct calobj{
struct icaltimetype start;
--- a/Src/settings.c
+++ b/Src/settings.c
--- a/settings.c
+++ b/settings.c
@@ -1,4 +1,14 @@
#include "settings.h"
+
Expand All @@ -64,8 +64,8 @@
void set_lang(int language){lang = language;}
void setAppicon(int app){appicon = app;}
void enter_callback( GtkWidget *widget, GtkWidget *entry ){
--- a/Src/settings.h
+++ b/Src/settings.h
--- a/settings.h
+++ b/settings.h
@@ -7,14 +7,14 @@


Expand Down

0 comments on commit 59d4a38

Please sign in to comment.