mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
6506e45d69
- Update audio/sdl_mixer to version 1.2.11. - Update graphics/sdl_gfx to version 2.0.20. - Update graphics/sdl_image to version 1.2.10. - Bump portrevisions for all ports depending on audio/sdl_mixer and graphics/sdl_image. - Update Mk/bsd.sdl.mk accordingly for the new shared lib versions. PR: ports/142147 ports/142248 ports/142249 Approved by: miwi (mentor implicit)
29 lines
651 B
C++
29 lines
651 B
C++
--- port/linux/linuxmain.cpp.orig 2008-01-10 04:26:42.000000000 +0100
|
|
+++ port/linux/linuxmain.cpp 2010-01-28 00:08:58.000000000 +0100
|
|
@@ -1,4 +1,9 @@
|
|
#include <SDL.h>
|
|
+#include <errno.h>
|
|
+#include <err.h>
|
|
+#include <stdlib.h>
|
|
+#include <sys/stat.h>
|
|
+#include <unistd.h>
|
|
|
|
#ifdef main
|
|
#undef main
|
|
@@ -11,6 +16,15 @@
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
+ {
|
|
+ if (chdir(getenv("HOME")) != 0)
|
|
+ err(1, "cannot cd to $HOME");
|
|
+ if (mkdir(".powder", 0755) != 0 && errno != EEXIST)
|
|
+ err(1, "cannot mkdir $HOME/.powder");
|
|
+ if (chdir(".powder") != 0)
|
|
+ err(1, "cannot cd to $HOME/.powder");
|
|
+ }
|
|
+
|
|
// Call our main.
|
|
gba_main();
|
|
|