openbsd-ports/audio/xmp/patches/patch-src_player_readrc_c
2003-05-18 07:40:55 +00:00

22 lines
962 B
Plaintext

$OpenBSD: patch-src_player_readrc_c,v 1.1 2003/05/18 07:40:55 naddy Exp $
--- src/player/readrc.c.orig Fri May 16 23:25:25 2003
+++ src/player/readrc.c Fri May 16 23:26:34 2003
@@ -58,7 +58,7 @@ int xmpi_read_rc (struct xmp_control *ct
if ((rc = fopen (myrc2, "r")) == NULL) {
if ((rc = fopen (myrc, "r")) == NULL) {
#ifndef __EMX__
- if ((rc = fopen ("/etc/xmp.conf", "r")) == NULL) {
+ if ((rc = fopen (SYSCONF_DIR "/xmp.conf", "r")) == NULL) {
#else
if ((rc = fopen ("xmp.conf", "r")) == NULL) {
#endif
@@ -206,7 +206,7 @@ void xmpi_read_modconf (struct xmp_contr
myrc = malloc ((home ? strlen (home) : 0) + 20);
#ifndef __EMX__
sprintf (myrc, "%s/.xmp/modules.conf", home);
- parse_modconf (ctl, "/etc/xmp-modules.conf", crc, size);
+ parse_modconf (ctl, SYSCONF_DIR "/xmp-modules.conf", crc, size);
#else
sprintf (myrc, "%s\\.xmp\\modules.conf", home);
parse_modconf (ctl, "xmp-modules.conf", crc, size);