mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Fix compilation on AmigaOS 4.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user