View | Details | Raw Unified | Return to bug 166339
Collapse All | Expand All

(-)./Makefile (-2 / +3 lines)
Lines 12-25 Link Here
12
CATEGORIES=	multimedia
12
CATEGORIES=	multimedia
13
MASTER_SITES=	SF/${PORTNAME}/GOPchop%20-%20Stable/${PORTVERSION} \
13
MASTER_SITES=	SF/${PORTNAME}/GOPchop%20-%20Stable/${PORTVERSION} \
14
		http://outflux.net/unix/software/GOPchop/download/
14
		http://outflux.net/unix/software/GOPchop/download/
15
16
DISTNAME=	GOPchop-${PORTVERSION}
15
DISTNAME=	GOPchop-${PORTVERSION}
17
16
18
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	5u623l20@gmail.com
19
COMMENT=	MPEG2 GOP-accurate editor
18
COMMENT=	MPEG2 GOP-accurate editor
20
19
21
LIB_DEPENDS=	mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
20
LIB_DEPENDS=	mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
22
21
22
PORTSCOUT=	skipv:1.1.0,1.1.1,1.1.2,1.1.3,1.1.4,1.1.5,1.1.6,1.1.7,1.1.8
23
23
USE_GNOME=	gtk12 intlhack
24
USE_GNOME=	gtk12 intlhack
24
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
25
CONFIGURE_ARGS=	--disable-sdl
26
CONFIGURE_ARGS=	--disable-sdl
(-)./files/patch-include-GOPchop.h (+33 lines)
Line 0 Link Here
1
--- include/GOPchop.h.orig	Sun Apr 27 13:13:19 2003
2
+++ include/GOPchop.h	Tue Apr  6 19:31:08 2004
3
@@ -31,7 +31,13 @@
4
 #endif
5
 
6
 /* get the cool numbers */
7
-#include <stdint.h>
8
+#ifdef HAVE_STDINT_H
9
+# include <stdint.h>
10
+#endif
11
+
12
+#ifdef HAVE_INTTYPES_H
13
+# include <inttypes.h>
14
+#endif
15
 
16
 /* import locale functions */
17
 #include "gettext.h"
18
@@ -50,11 +56,15 @@
19
 #endif
20
 
21
 /* figure out off_t formatting */
22
+#if defined(__FreeBSD__)
23
+# define OFF_T_FORMAT  "llu"
24
+#else
25
 #if _FILE_OFFSET_BITS==64
26
 # define OFF_T_FORMAT  "llu"
27
 #else
28
 # warning "Not compiling for large file (>2G) support!"
29
 # define OFF_T_FORMAT  "lu"
30
+#endif
31
 #endif
32
 
33
 /* define a string length used for short reports */
(-)./files/patch-include::GOPchop.h (-33 lines)
Lines 1-33 Link Here
1
--- include/GOPchop.h.orig	Sun Apr 27 13:13:19 2003
2
+++ include/GOPchop.h	Tue Apr  6 19:31:08 2004
3
@@ -31,7 +31,13 @@
4
 #endif
5
 
6
 /* get the cool numbers */
7
-#include <stdint.h>
8
+#ifdef HAVE_STDINT_H
9
+# include <stdint.h>
10
+#endif
11
+
12
+#ifdef HAVE_INTTYPES_H
13
+# include <inttypes.h>
14
+#endif
15
 
16
 /* import locale functions */
17
 #include "gettext.h"
18
@@ -50,11 +56,15 @@
19
 #endif
20
 
21
 /* figure out off_t formatting */
22
+#if defined(__FreeBSD__)
23
+# define OFF_T_FORMAT  "llu"
24
+#else
25
 #if _FILE_OFFSET_BITS==64
26
 # define OFF_T_FORMAT  "llu"
27
 #else
28
 # warning "Not compiling for large file (>2G) support!"
29
 # define OFF_T_FORMAT  "lu"
30
+#endif
31
 #endif
32
 
33
 /* define a string length used for short reports */
(-)./files/patch-src-ElementStream.h (+13 lines)
Line 0 Link Here
1
--- src/ElementStream.h.orig	Thu Jan 17 06:32:23 2002
2
+++ src/ElementStream.h	Tue May  6 21:35:30 2003
3
@@ -29,7 +29,10 @@
4
 
5
 #include "config.h"
6
 #include "Vector.h"
7
+
8
+#ifdef HAVE_STDINT_H
9
 #include <stdint.h>
10
+#endif
11
 
12
 class ElementStream: public Vector
13
 {
(-)./files/patch-src-MPEG2Parser.cpp (+146 lines)
Line 0 Link Here
1
--- src/MPEG2Parser.cpp.orig	Thu Sep 30 17:15:58 2004
2
+++ src/MPEG2Parser.cpp	Thu Sep 30 17:22:57 2004
3
@@ -194,7 +194,7 @@
4
     off_t pes_loc;
5
 
6
     pes_loc = location;
7
-    if (!((void *) header = attach(sizeof(*header))))
8
+    if (!(header = (PES_packet_header_t *) attach(sizeof(*header))))
9
     {
10
         ATTACH_FAILED(_("header"), sizeof(*header));
11
         return;
12
@@ -225,7 +225,7 @@
13
             SKIP_BYTES(length);
14
             break;
15
 
16
-            if (!((void *) data = attach(length)))
17
+            if (!(data = (uint8_t *) attach(length)))
18
             {
19
                 ATTACH_FAILED(_("stream data"), length);
20
                 return;
21
@@ -242,7 +242,7 @@
22
             SKIP_BYTES(length);
23
             break;
24
 
25
-            if (!((void *) data = attach(length)))
26
+            if (!(data = (uint8_t *) attach(length)))
27
             {
28
                 ATTACH_FAILED(_("padding data"), length);
29
                 return;
30
@@ -297,7 +297,7 @@
31
                 break;
32
             }
33
 
34
-            if (!((void *) internals_area = attach(sizeof(internals))))
35
+            if (!(internals_area = (PES_packet_internals_t *) attach(sizeof(internals))))
36
             {
37
                 ATTACH_FAILED(_("flag data"), sizeof(internals));
38
                 return;
39
@@ -317,7 +317,7 @@
40
 
41
             if (CheckMaskValue(internals.bits[1], 0xC0, 0x80))
42
             {
43
-                if (!((void *) PTS_data = attach(5)))
44
+                if (!(PTS_data = (uint8_t *) attach(5)))
45
                 {
46
                     ATTACH_FAILED(_("PTS data"), 5);
47
                     return;
48
@@ -329,7 +329,7 @@
49
             }
50
             if (CheckMaskValue(internals.bits[1], 0xC0, 0xC0))
51
             {
52
-                if (!((void *) PTS_data = attach(5)))
53
+                if (!(PTS_data = (uint8_t *) attach(5)))
54
                 {
55
                     ATTACH_FAILED(_("PTS data"), 5);
56
                     return;
57
@@ -338,7 +338,7 @@
58
                 /*
59
                    if (debug) Report("has PTS");
60
                  */
61
-                if (!((void *) DTS_data = attach(5)))
62
+                if (!(DTS_data = (uint8_t *) attach(5)))
63
                 {
64
                     ATTACH_FAILED(_("DTS data"), 5);
65
                     return;
66
@@ -366,7 +366,7 @@
67
             if (CheckMaskValue(internals.bits[1], 0x4, 0x4))
68
             {
69
                 if (!
70
-                    ((void *) additional_copy_info =
71
+                    (additional_copy_info = (PES_packet_additional_copy_info_t *)
72
                      attach(sizeof(*additional_copy_info))))
73
                 {
74
                     ATTACH_FAILED(_("additional copy info"),
75
@@ -390,7 +390,7 @@
76
             {
77
                 PES_packet_extension_t *extension;
78
 
79
-                if (!((void *) extension = attach(sizeof(*extension))))
80
+                if (!(extension = (PES_packet_extension_t *) attach(sizeof(*extension))))
81
                 {
82
                     ATTACH_FAILED(_("extension data"), sizeof(*extension));
83
                     return;
84
@@ -398,7 +398,7 @@
85
 
86
                 if (PPE_PES_private_data_flag(extension->bits[0]))
87
                 {
88
-                    if (!((void *) PES_private_data = attach(16)))
89
+                    if (!(PES_private_data = (uint8_t *) attach(16)))
90
                     {
91
                         ATTACH_FAILED(_("PES private data"), 16);
92
                         return;
93
@@ -407,7 +407,7 @@
94
                 if (PPE_pack_header_field_flag(extension->bits[0]))
95
                 {
96
                     uint8_t *pack_field_length;
97
-                    if (!((void *) pack_field_length = attach(1)))
98
+                    if (!(pack_field_length = (uint8_t *) attach(1)))
99
                     {
100
                         ATTACH_FAILED(_("PES extension pack field length"),
101
                                       1);
102
@@ -480,7 +480,7 @@
103
             length -= (internals.PES_header_data_length + 3);
104
 
105
             data_loc = location;
106
-            if (!((void *) data = attach(length)))
107
+            if (!(data = (uint8_t *) attach(length)))
108
             {
109
                 ATTACH_FAILED(_("ES data"), length);
110
                 return;
111
@@ -519,7 +519,7 @@
112
     fprintf(stderr, "System @ %llu?\n", location);
113
 #endif
114
 
115
-    if (!((void *) header = attach(sizeof(*header))))
116
+    if (!(header = (system_header_t *) attach(sizeof(*header))))
117
     {
118
         ATTACH_FAILED(_("header"), sizeof(*header));
119
         return;
120
@@ -547,7 +547,7 @@
121
 
122
     while (forwardBitMatch(1, 0x1))
123
     {
124
-        if (!((void *) stream = attach(sizeof(*stream))))
125
+        if (!(stream = (stream_id_t *) attach(sizeof(*stream))))
126
         {
127
             ATTACH_FAILED(_("stream header"), sizeof(*stream));
128
             return;
129
@@ -574,7 +574,7 @@
130
 
131
     pack_start = location;
132
 
133
-    if (!((void *) header = attach(sizeof(*header))))
134
+    if (!(header = (pack_header_t *) attach(sizeof(*header))))
135
     {
136
         ATTACH_FAILED(_("header"), sizeof(*header));
137
         return;
138
@@ -749,7 +749,7 @@
139
 
140
     while (tosearch > 0)
141
     {
142
-        if (((void *) ptr = memchr(buf, 0x00, tosearch)))
143
+        if ((ptr = (uint8_t *) memchr(buf, 0x00, tosearch)))
144
         {
145
             if (verify(ptr, 4, code))
146
             {
(-)./files/patch-src-Main.cpp (+37 lines)
Line 0 Link Here
1
--- src/Main.cpp.orig	Thu Apr 15 12:08:27 2004
2
+++ src/Main.cpp	Thu Apr 15 12:08:40 2004
3
@@ -305,7 +305,7 @@
4
     static gchar *str = NULL;
5
 
6
     // text needs a static area, I think... ?
7
-    (void *) str = g_realloc(str, strlen(text) + 1);
8
+    str = (gchar *) g_realloc(str, strlen(text) + 1);
9
     strcpy(str, text);
10
 
11
     gtk_text_freeze(GTK_TEXT(error_text_why));
12
@@ -998,7 +998,6 @@
13
         else if (accel & MPEG2_ACCEL_SPARC_VIS2)
14
             printf("%s", _("Using Sparc VIS2 acceleration\n"));
15
 #endif
16
-        else
17
             printf("%s", _("Using no special acceleration\n"));
18
     
19
         if (!(mpeg2dec = mpeg2_init()))
20
@@ -1382,7 +1381,7 @@
21
                 }
22
     
23
                 len = ves->getLen();
24
-                (void *)loc = mpeg2parser->bytesAvail(ves->getStart(), len);
25
+                loc = (uint8_t *) mpeg2parser->bytesAvail(ves->getStart(), len);
26
     
27
                 /*
28
                 fprintf(stderr,_("\t\tVES: %d @ %llu (%d): 0x%08x\n"),
29
@@ -1399,7 +1398,7 @@
30
             // send entire packet to pipe
31
 
32
             len = packet->getLen();
33
-            (void *)loc = mpeg2parser->bytesAvail(packet->getStart(), len);
34
+            loc = (uint8_t *) mpeg2parser->bytesAvail(packet->getStart(), len);
35
             if (loc && client_pipe)
36
             {
37
                 int written;
(-)./files/patch-src-file_buffer.h (+29 lines)
Line 0 Link Here
1
--- src/file_buffer.h.orig	Mon Aug 25 17:17:41 2003
2
+++ src/file_buffer.h	Tue Apr  6 19:32:32 2004
3
@@ -51,6 +51,7 @@
4
 #endif
5
 
6
 #include <stdio.h> /* fopen, fread, fseek*, fclose */
7
+#include <sys/types.h>
8
 
9
 /* figure out which fseek/ftell we need */
10
 #undef FSEEK
11
@@ -70,6 +71,10 @@
12
 /* figure out off_t formatting */
13
 #undef OFF_T_FORMAT
14
 #undef ATOL
15
+#if defined(__FreeBSD__)
16
+# define OFF_T_FORMAT  "llu"
17
+# define ATOL(arg)     strtoll(arg, NULL, 10)
18
+#else
19
 #if _FILE_OFFSET_BITS==64
20
 # define OFF_T_FORMAT  "llu"
21
 # define ATOL(arg)     atoll(arg)
22
@@ -77,6 +82,7 @@
23
 # warning "Not compiling for large file (>2G) support!"
24
 # define OFF_T_FORMAT  "lu"
25
 # define ATOL(arg)     atol(arg)
26
+#endif
27
 #endif
28
 
29
 #define DEFAULT_FILE_BUFFER_SIZE    	(1024*512)
(-)./files/patch-src-mpegcat.c (+22 lines)
Line 0 Link Here
1
--- src/mpegcat.c.orig	Sun Apr 27 12:08:37 2003
2
+++ src/mpegcat.c	Sun Jun  8 16:50:36 2003
3
@@ -392,11 +392,19 @@
4
                 break;
5
 
6
             case 'n':
7
+#ifdef __FreeBSD__
8
+                num_bytes = strtoll(optarg, NULL, 10);
9
+#else
10
                 num_bytes = atoll(optarg);
11
+#endif
12
                 break;
13
 
14
             case 'b':
15
+#ifdef __FreeBSD__
16
+                begin_at = num_bytes = strtoll(optarg, NULL, 10);
17
+#else
18
                 begin_at = atoll(optarg);
19
+#endif
20
                 break;
21
 
22
             case 'w':
(-)./files/patch-src::ElementStream.h (-13 lines)
Lines 1-13 Link Here
1
--- src/ElementStream.h.orig	Thu Jan 17 06:32:23 2002
2
+++ src/ElementStream.h	Tue May  6 21:35:30 2003
3
@@ -29,7 +29,10 @@
4
 
5
 #include "config.h"
6
 #include "Vector.h"
7
+
8
+#ifdef HAVE_STDINT_H
9
 #include <stdint.h>
10
+#endif
11
 
12
 class ElementStream: public Vector
13
 {
(-)./files/patch-src::MPEG2Parser.cpp (-146 lines)
Lines 1-146 Link Here
1
--- src/MPEG2Parser.cpp.orig	Thu Sep 30 17:15:58 2004
2
+++ src/MPEG2Parser.cpp	Thu Sep 30 17:22:57 2004
3
@@ -194,7 +194,7 @@
4
     off_t pes_loc;
5
 
6
     pes_loc = location;
7
-    if (!((void *) header = attach(sizeof(*header))))
8
+    if (!(header = (PES_packet_header_t *) attach(sizeof(*header))))
9
     {
10
         ATTACH_FAILED(_("header"), sizeof(*header));
11
         return;
12
@@ -225,7 +225,7 @@
13
             SKIP_BYTES(length);
14
             break;
15
 
16
-            if (!((void *) data = attach(length)))
17
+            if (!(data = (uint8_t *) attach(length)))
18
             {
19
                 ATTACH_FAILED(_("stream data"), length);
20
                 return;
21
@@ -242,7 +242,7 @@
22
             SKIP_BYTES(length);
23
             break;
24
 
25
-            if (!((void *) data = attach(length)))
26
+            if (!(data = (uint8_t *) attach(length)))
27
             {
28
                 ATTACH_FAILED(_("padding data"), length);
29
                 return;
30
@@ -297,7 +297,7 @@
31
                 break;
32
             }
33
 
34
-            if (!((void *) internals_area = attach(sizeof(internals))))
35
+            if (!(internals_area = (PES_packet_internals_t *) attach(sizeof(internals))))
36
             {
37
                 ATTACH_FAILED(_("flag data"), sizeof(internals));
38
                 return;
39
@@ -317,7 +317,7 @@
40
 
41
             if (CheckMaskValue(internals.bits[1], 0xC0, 0x80))
42
             {
43
-                if (!((void *) PTS_data = attach(5)))
44
+                if (!(PTS_data = (uint8_t *) attach(5)))
45
                 {
46
                     ATTACH_FAILED(_("PTS data"), 5);
47
                     return;
48
@@ -329,7 +329,7 @@
49
             }
50
             if (CheckMaskValue(internals.bits[1], 0xC0, 0xC0))
51
             {
52
-                if (!((void *) PTS_data = attach(5)))
53
+                if (!(PTS_data = (uint8_t *) attach(5)))
54
                 {
55
                     ATTACH_FAILED(_("PTS data"), 5);
56
                     return;
57
@@ -338,7 +338,7 @@
58
                 /*
59
                    if (debug) Report("has PTS");
60
                  */
61
-                if (!((void *) DTS_data = attach(5)))
62
+                if (!(DTS_data = (uint8_t *) attach(5)))
63
                 {
64
                     ATTACH_FAILED(_("DTS data"), 5);
65
                     return;
66
@@ -366,7 +366,7 @@
67
             if (CheckMaskValue(internals.bits[1], 0x4, 0x4))
68
             {
69
                 if (!
70
-                    ((void *) additional_copy_info =
71
+                    (additional_copy_info = (PES_packet_additional_copy_info_t *)
72
                      attach(sizeof(*additional_copy_info))))
73
                 {
74
                     ATTACH_FAILED(_("additional copy info"),
75
@@ -390,7 +390,7 @@
76
             {
77
                 PES_packet_extension_t *extension;
78
 
79
-                if (!((void *) extension = attach(sizeof(*extension))))
80
+                if (!(extension = (PES_packet_extension_t *) attach(sizeof(*extension))))
81
                 {
82
                     ATTACH_FAILED(_("extension data"), sizeof(*extension));
83
                     return;
84
@@ -398,7 +398,7 @@
85
 
86
                 if (PPE_PES_private_data_flag(extension->bits[0]))
87
                 {
88
-                    if (!((void *) PES_private_data = attach(16)))
89
+                    if (!(PES_private_data = (uint8_t *) attach(16)))
90
                     {
91
                         ATTACH_FAILED(_("PES private data"), 16);
92
                         return;
93
@@ -407,7 +407,7 @@
94
                 if (PPE_pack_header_field_flag(extension->bits[0]))
95
                 {
96
                     uint8_t *pack_field_length;
97
-                    if (!((void *) pack_field_length = attach(1)))
98
+                    if (!(pack_field_length = (uint8_t *) attach(1)))
99
                     {
100
                         ATTACH_FAILED(_("PES extension pack field length"),
101
                                       1);
102
@@ -480,7 +480,7 @@
103
             length -= (internals.PES_header_data_length + 3);
104
 
105
             data_loc = location;
106
-            if (!((void *) data = attach(length)))
107
+            if (!(data = (uint8_t *) attach(length)))
108
             {
109
                 ATTACH_FAILED(_("ES data"), length);
110
                 return;
111
@@ -519,7 +519,7 @@
112
     fprintf(stderr, "System @ %llu?\n", location);
113
 #endif
114
 
115
-    if (!((void *) header = attach(sizeof(*header))))
116
+    if (!(header = (system_header_t *) attach(sizeof(*header))))
117
     {
118
         ATTACH_FAILED(_("header"), sizeof(*header));
119
         return;
120
@@ -547,7 +547,7 @@
121
 
122
     while (forwardBitMatch(1, 0x1))
123
     {
124
-        if (!((void *) stream = attach(sizeof(*stream))))
125
+        if (!(stream = (stream_id_t *) attach(sizeof(*stream))))
126
         {
127
             ATTACH_FAILED(_("stream header"), sizeof(*stream));
128
             return;
129
@@ -574,7 +574,7 @@
130
 
131
     pack_start = location;
132
 
133
-    if (!((void *) header = attach(sizeof(*header))))
134
+    if (!(header = (pack_header_t *) attach(sizeof(*header))))
135
     {
136
         ATTACH_FAILED(_("header"), sizeof(*header));
137
         return;
138
@@ -749,7 +749,7 @@
139
 
140
     while (tosearch > 0)
141
     {
142
-        if (((void *) ptr = memchr(buf, 0x00, tosearch)))
143
+        if ((ptr = (uint8_t *) memchr(buf, 0x00, tosearch)))
144
         {
145
             if (verify(ptr, 4, code))
146
             {
(-)./files/patch-src::Main.cpp (-37 lines)
Lines 1-37 Link Here
1
--- src/Main.cpp.orig	Thu Apr 15 12:08:27 2004
2
+++ src/Main.cpp	Thu Apr 15 12:08:40 2004
3
@@ -305,7 +305,7 @@
4
     static gchar *str = NULL;
5
 
6
     // text needs a static area, I think... ?
7
-    (void *) str = g_realloc(str, strlen(text) + 1);
8
+    str = (gchar *) g_realloc(str, strlen(text) + 1);
9
     strcpy(str, text);
10
 
11
     gtk_text_freeze(GTK_TEXT(error_text_why));
12
@@ -998,7 +998,6 @@
13
         else if (accel & MPEG2_ACCEL_SPARC_VIS2)
14
             printf("%s", _("Using Sparc VIS2 acceleration\n"));
15
 #endif
16
-        else
17
             printf("%s", _("Using no special acceleration\n"));
18
     
19
         if (!(mpeg2dec = mpeg2_init()))
20
@@ -1382,7 +1381,7 @@
21
                 }
22
     
23
                 len = ves->getLen();
24
-                (void *)loc = mpeg2parser->bytesAvail(ves->getStart(), len);
25
+                loc = (uint8_t *) mpeg2parser->bytesAvail(ves->getStart(), len);
26
     
27
                 /*
28
                 fprintf(stderr,_("\t\tVES: %d @ %llu (%d): 0x%08x\n"),
29
@@ -1399,7 +1398,7 @@
30
             // send entire packet to pipe
31
 
32
             len = packet->getLen();
33
-            (void *)loc = mpeg2parser->bytesAvail(packet->getStart(), len);
34
+            loc = (uint8_t *) mpeg2parser->bytesAvail(packet->getStart(), len);
35
             if (loc && client_pipe)
36
             {
37
                 int written;
(-)./files/patch-src::file_buffer.h (-29 lines)
Lines 1-29 Link Here
1
--- src/file_buffer.h.orig	Mon Aug 25 17:17:41 2003
2
+++ src/file_buffer.h	Tue Apr  6 19:32:32 2004
3
@@ -51,6 +51,7 @@
4
 #endif
5
 
6
 #include <stdio.h> /* fopen, fread, fseek*, fclose */
7
+#include <sys/types.h>
8
 
9
 /* figure out which fseek/ftell we need */
10
 #undef FSEEK
11
@@ -70,6 +71,10 @@
12
 /* figure out off_t formatting */
13
 #undef OFF_T_FORMAT
14
 #undef ATOL
15
+#if defined(__FreeBSD__)
16
+# define OFF_T_FORMAT  "llu"
17
+# define ATOL(arg)     strtoll(arg, NULL, 10)
18
+#else
19
 #if _FILE_OFFSET_BITS==64
20
 # define OFF_T_FORMAT  "llu"
21
 # define ATOL(arg)     atoll(arg)
22
@@ -77,6 +82,7 @@
23
 # warning "Not compiling for large file (>2G) support!"
24
 # define OFF_T_FORMAT  "lu"
25
 # define ATOL(arg)     atol(arg)
26
+#endif
27
 #endif
28
 
29
 #define DEFAULT_FILE_BUFFER_SIZE    	(1024*512)
(-)./files/patch-src::mpegcat.c (-22 lines)
Lines 1-22 Link Here
1
--- src/mpegcat.c.orig	Sun Apr 27 12:08:37 2003
2
+++ src/mpegcat.c	Sun Jun  8 16:50:36 2003
3
@@ -392,11 +392,19 @@
4
                 break;
5
 
6
             case 'n':
7
+#ifdef __FreeBSD__
8
+                num_bytes = strtoll(optarg, NULL, 10);
9
+#else
10
                 num_bytes = atoll(optarg);
11
+#endif
12
                 break;
13
 
14
             case 'b':
15
+#ifdef __FreeBSD__
16
+                begin_at = num_bytes = strtoll(optarg, NULL, 10);
17
+#else
18
                 begin_at = atoll(optarg);
19
+#endif
20
                 break;
21
 
22
             case 'w':

Return to bug 166339