summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/alloca.c2
-rw-r--r--ar/ar.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/ar/alloca.c b/ar/alloca.c
index 880c100..80c95e2 100644
--- a/ar/alloca.c
+++ b/ar/alloca.c
@@ -6,7 +6,7 @@
#include <string.h>
#endif
-#ifdef __TINYC__
+#if defined(__TINYC__) || defined(__HP_cc)
typedef union mem_cell
{
union mem_cell *next; /* A pointer to the next mem */
diff --git a/ar/ar.c b/ar/ar.c
index 1753293..b0694ac 100644
--- a/ar/ar.c
+++ b/ar/ar.c
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
+
#include <stdio.h>
#include <stdlib.h>
@@ -29,11 +29,11 @@
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/errno.h>
+#include <errno.h>
#include "ar.h"
#include "rel_aout.h"
-#ifdef __BCC__
+#if defined(__BCC__) || defined(__HP_cc)
#define HAVE_RENAME
#undef HAVE_FSYNC
#define SHORT_FILENAME