Fix compilation on AmigaOS 4.

This commit is contained in:
2021-04-19 14:05:11 +01:00
parent 5a838015c3
commit 32e604bd98
10 changed files with 32 additions and 6 deletions

View File

@@ -25,6 +25,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"

View File

@@ -25,6 +25,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"

View File

@@ -25,6 +25,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/consts.h"
#include "../include/defs.h"

View File

@@ -25,6 +25,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"

View File

@@ -25,6 +25,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdlib.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/consts.h"
#include "../include/defs.h"

View File

@@ -24,6 +24,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"

View File

@@ -26,11 +26,13 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#include "perms.h"
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"
#include "perms.h"
void FilePermissions(const char* path)
{

View File

@@ -23,6 +23,9 @@ Copyright (C) 2011-2021 Natalia Portillo
*****************************************************************************/
#include <proto/dos.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/consts.h"
#include "../include/defs.h"

View File

@@ -25,11 +25,13 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
#include "time.h"
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"
#include "time.h"
void Timestamps(const char* path)
{

View File

@@ -24,6 +24,9 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <proto/dos.h>
#include <string.h>
#if defined(__amigaos4__)
#include <dos/obsolete.h>
#endif
#include "../include/defs.h"
#include "../log.h"
@@ -32,11 +35,9 @@ void ExtendedAttributes(const char* path)
{
BPTR pathLock;
BPTR dirLock;
int ret;
BPTR file;
int rc;
int cRc;
int attr_fd;
char* buffer = "This file has a comment.\n";
pathLock = Lock((CONST_STRPTR)path, SHARED_LOCK);